wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 111

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: 61103
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 111

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: 61103
    
  66

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: displaying loading image on clicking a link or Node