This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes displaying loading image on clicking a link or Node Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "displaying loading image on clicking a link or Node" Watch "displaying loading image on clicking a link or Node" New topic
Author

displaying loading image on clicking a link or Node

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 95

HI guys,

I am using a javascript based tree structure along with framesets. I want to know how to display a gif image file containing a message "loading..." , to the user whenever he clicks a node or link in the tree structure.

Thank you.
Deepak.


Regards,
Deepak

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

You can either preload the image and hide/reveal it. Or create and delete it on the fly.

Where's your code? What problems are you having with it?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 95

Hi Bear,

This is my code


view frame is the frame where my pages are going to be displayed on clicking the links in the menu frame



This is my template class:




and i have a java class where i do the normal jdbc stuff to retrieve these values from the database
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: displaying loading image on clicking a link or Node
 
Similar Threads
defaultMutableTreeNode
Folder icon display at richfaces tree node
Queries within Queries within Queries...
Treenode image
Syntax Tree