HighDots Forums  

Showing a <div> whilst a long running process is occuring

Javascript JavaScript language (comp.lang.javascript)


Discuss Showing a <div> whilst a long running process is occuring in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kieran Benton
 
Posts: n/a

Default Showing a <div> whilst a long running process is occuring - 07-03-2005 , 02:59 PM






Hi, I'm using AJAX.NET to do a back end lookup and would like to
display a <div> constaining some text to the effect of "Please wait"
whilst it is running and then hide it once it is finished. At the
moment I set the style "display" property to "none" to hide the box and
then reset it to show it. This works, but becasue I'm doing the show ->
lookup -> hide in one javascript method, the tet never appears! What is
the best way round this? Cheers.


Reply With Quote
  #2  
Old   
Christopher J. Hahn
 
Posts: n/a

Default Re: Showing a <div> whilst a long running process is occuring - 07-03-2005 , 07:39 PM






Kieran Benton wrote:
Quote:
Hi, I'm using AJAX.NET to do a back end lookup and would like to
display a <div> constaining some text to the effect of "Please wait"
whilst it is running and then hide it once it is finished. At the
moment I set the style "display" property to "none" to hide the box and
then reset it to show it. This works, but becasue I'm doing the show -
lookup -> hide in one javascript method, the tet never appears! What is
the best way round this? Cheers.

I'm not familiar with AJAX.NET, but I would do the lookup
asynchronously and split the process into two functions:

show > lookup

receive/callback > hide


Add a way out and some added fault-tolerance-- any number of possible
occurrences may prevent the lookup from ever completing.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.