This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing the color?

 
venkatesh padmanabhan
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a calendar program in jsp. when the user clicks on any particular date, the user should be able to add a description of the date, and after entering the color of the selected date should change to some other color indicating its been selected.
please help for changing the color..



i want the selected date to change to some other color. please help with modified code in the above code.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change the color?

<td style="color:#123321;background-color:#FFF00">

Eric
 
venkatesh padmanabhan
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to change the color, when the user clicks/selects the date.. I have the dates in a link format,when the user clicks on a particular date, that particular date alone should change color..
can u help?
 
Liyaquat Ali
Ranch Hand
Posts: 156
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't actually gone through your code completely, but here is a tip, If you want to change the color on click then you will need to call a javascript function when the link is clicked. here you have dates in a calendar so U will also need to pass the name or index number of the date which is being clicked. The function which is being called will change the style property for that individual element, which could either be a table td or div.

Hope this helps.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic