How to display "Please wait" window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kannan

    How to display "Please wait" window

    Hello,
    I have a requirement that specifies that I display a "Please Wait..."
    window (preferably modal) along with a gif that mimics a progress bar
    during a save operation. The dialog needs to be closed at the end of
    the operation. How do I go about this...

    Issues are:
    1. I believe a showModaldialog would stop all back ground processing
    and shift control to the modal dialog.
    2. I would like to close the dialog from the parent window when the
    process is complete.


    Please do let me know of any options that I can use for this...


    Thanks in advance
  • Erwin Moller

    #2
    Re: How to display "Please wait" window

    Kannan wrote:
    [color=blue]
    > Hello,
    > I have a requirement that specifies that I display a "Please Wait..."
    > window (preferably modal) along with a gif that mimics a progress bar
    > during a save operation. The dialog needs to be closed at the end of
    > the operation. How do I go about this...
    >
    > Issues are:
    > 1. I believe a showModaldialog would stop all back ground processing
    > and shift control to the modal dialog.
    > 2. I would like to close the dialog from the parent window when the
    > process is complete.
    >
    >
    > Please do let me know of any options that I can use for this...
    >
    >
    > Thanks in advance[/color]

    Hi Kannan,

    I assume you call some serversidescrip t that takes a lot of time to finish.
    Is that correct?
    If correct, this is an easy way to accomplish your wishes:

    1) let the server output HTML that includes some javascript.
    Be sure to flush this!
    2) the javascript is written in the head, and executed right away (no
    OnLoad!!)
    3) The javascript creates a new window that contains a nice 'please wait'
    with some progresbar. Lets name it windowPLeaseWai t.
    4) when you serverside script finishes, it outputs new javascript with the
    windowPLeaseWai t.close()

    That should do the trick.

    Regards,
    Erwin Moller

    Comment

    • Michael Winter

      #3
      Re: How to display "Please wait" window

      Erwin Moller wrote on 27 Nov 2003:

      <snip>
      [color=blue]
      > I assume you call some serversidescrip t that takes a lot of time
      > to finish. Is that correct?
      > If correct, this is an easy way to accomplish your wishes:
      >
      > 1) let the server output HTML that includes some javascript.
      > Be sure to flush this!
      > 2) the javascript is written in the head, and executed right
      > away (no OnLoad!!)
      > 3) The javascript creates a new window that contains a nice
      > 'please wait' with some progresbar. Lets name it
      > windowPLeaseWai t. 4) when you serverside script finishes, it
      > outputs new javascript with the windowPLeaseWai t.close()[/color]

      Just be aware that pop-up blockers will block this.

      Mike

      --
      Michael Winter
      M.Winter@blueyo nder.co.uk.invalid (remove ".invalid" to reply)

      Comment

      • Erwin Moller

        #4
        Re: How to display &quot;Please wait&quot; window

        Michael Winter wrote:
        [color=blue]
        > Erwin Moller wrote on 27 Nov 2003:
        >
        > <snip>
        >[color=green]
        >> I assume you call some serversidescrip t that takes a lot of time
        >> to finish. Is that correct?
        >> If correct, this is an easy way to accomplish your wishes:
        >>
        >> 1) let the server output HTML that includes some javascript.
        >> Be sure to flush this!
        >> 2) the javascript is written in the head, and executed right
        >> away (no OnLoad!!)
        >> 3) The javascript creates a new window that contains a nice
        >> 'please wait' with some progresbar. Lets name it
        >> windowPLeaseWai t. 4) when you serverside script finishes, it
        >> outputs new javascript with the windowPLeaseWai t.close()[/color]
        >
        > Just be aware that pop-up blockers will block this.
        >
        > Mike
        >[/color]

        True Mike,

        If that is a worry, a good alternative could be:

        Place an image 'please wait' (animated or not) and replace that image when
        the end-of-page is flushed with an empty image or 'finished'.

        Regards,
        Erwin Moller

        Comment

        Working...