Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Control CSS on a Jsp Page  RSS feed

 
kongati naveen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joined: Jul 22, 2009
Messages: 3


[Post New]posted Today 9:51:46 PM
Quote Edit [Up]
hi,
I have one issue with my web site home page which is a three column div layout where left column div contains
Ex: <UL><LI>First Link< LI><LI>Second Link< LI></UL>. I have around 20 links on the page.(Similar to Yahoo Home Page).
Basically i am going to implement a authentication kind of thing where i will be getting a value through java bean after performing security validation and all for which link is to be displayed and which link should not be displayed for each user.

Accordingly i have two css classes in one will have a attribute called visibility:visible and another class visibility :hidden.
Now i want to assign these classes to each UL TAG dynamically .
How can i achieve this?
Kindly help me out to solve this problem.
Thanks &Regards
Naveen
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kongati naveen wrote:Now i want to assign these classes to each UL TAG dynamically .

You'll need to explain what you mean by this.
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"CSS Classes" are you referring css files as CSS Classes if yes then you can use Javascript to set the visibility as hidden or visible on some action in javascript itself with one css file .Also can you paste sample code here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!