This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onclick - image

 
Roopa Bagur
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I am working on an application with JSP's which has images for tabs for the main menu.Here is the requirement.
Requirement:When you click on the tab which is an image the image changes & calls a jsp
I was wondering what was the best way to implement this requirement.
I would appreciate a quick response..
Thanks,
Roopa
 
Nehal Dave
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I am working on an application with JSP's which has images for tabs for the main menu.Here is the requirement.
Requirement:When you click on the tab which is an image the image changes & calls a jsp
>>
To change the image on click u need to use javascript. This can be done by making a link on image & then calling a javascript function onclick event. This function will just change the src of the image which u need to change. Altenatively u can preload the image which will be displayed on click so that their is no time delay for the new image to be seen. As for calling the jsp.. it will be the href of the link.
Hope this helps u ..
Cheers
Nehal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic