This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes need to stop loading indicator when a user hits browser stop button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "need to stop loading indicator when a user hits browser stop button" Watch "need to stop loading indicator when a user hits browser stop button" New topic
Author

need to stop loading indicator when a user hits browser stop button

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

Hello

Right now I change the mouse by doing this when a button on my page is clicked.


I have the code in place to change the cursor back as needed for the most part. However, there is one case where I cannot stop the loading cursor indication - when the user hits the browser stop button

Is there a way to monitor this event, and take some action if it occurs?


True wisdom is in knowing you know nothing - Socrates
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

We probably need more details. I assume you've changed the wait curser because when you submit some sort of request, it takes a bit to process. But the user clicks the stop button and so the page never refreshes, which means your mouse never has a chance to be changed. Is that right?


GenRocket - Experts at Building Test Data
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Some older IEs support onstop, not sure if other browsers do.

Eric
 
Consider Paul's rocket mass heater.
 
subject: need to stop loading indicator when a user hits browser stop button
 
Similar Threads
Browser Back button
Hourglass cursor while loading applet
disabling submit button
Waiting cursor problem
session cahe