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

Discussion in 'Javascript' started by Kieran Benton, Jul 3, 2005.

  1. 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.
    Kieran Benton, Jul 3, 2005
    #1
    1. Advertising

  2. Kieran Benton wrote:
    > 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.
    Christopher J. Hahn, Jul 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Marsaglia

    Assigning unsigned long to unsigned long long

    George Marsaglia, Jul 8, 2003, in forum: C Programming
    Replies:
    1
    Views:
    673
    Eric Sosman
    Jul 8, 2003
  2. Fuzzyman

    Output from a CGI whilst running

    Fuzzyman, Feb 9, 2004, in forum: Python
    Replies:
    0
    Views:
    523
    Fuzzyman
    Feb 9, 2004
  3. Daniel Rudy

    unsigned long long int to long double

    Daniel Rudy, Sep 19, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,184
    Peter Shaggy Haywood
    Sep 20, 2005
  4. news.west.cox.net

    hidding div - showing div

    news.west.cox.net, Nov 21, 2004, in forum: Javascript
    Replies:
    5
    Views:
    139
    SimonFx
    Nov 21, 2004
  5. Victor Hooi
    Replies:
    1
    Views:
    133
    Nobody
    Feb 10, 2013
Loading...

Share This Page