• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Display busy sign till page refreshes.

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I ran into a situation where I have to display a busy mouse symbol, till the page refreshes after selecting something from a drop down. After selecting from the drop down, behind the scenes thousands of sql statements execute, due to which it takes sometime for the page to refresh.

So, can anybody help me how to display a clock or some busy symbol on the jsp till the page regreshes sothat the user will know that he should wait till the page refreshes.

Thanks In Advance,
LK.
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the HTML/Javascript forum.
 
Bear Bibeault
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your onsubmit handler you can change the cursor shape via CSS just before the form submits, or you can have a hidden floating div on the page that says "please wait" that you can reveal, or something along those lines.
 
Latha Kota
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you didnt get my point. User select something from the drop down and then based on the selection some text fields get populated, rest of them the user fills and submits the form. Here, I need the cursor to change until the fields are populated.

Can you give me an example of how to use css to change the shape of cursor.

Thanks in advance,
LK.
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try this

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NO!!! document.all is IE only...eewwwwww!

Just try
document.body.style.cursor = "wait";

Eric
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic