Please wait image does not animate

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

    Please wait image does not animate

    Hello,

    I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the
    hidden div with the "Please Wait Message". It works fine. But if I
    replace the "Please Wait Message" with an animated gif - the gif shows
    up BUT it does not animate.

    How do I make the gif animate?

    THIS WORKS (initially hidden):-
    <div id="wait" class="status">
    <b>Please wait ...</b>
    </div>

    THIS WORKS BUT GIF DOES NOT ANIMATE:-
    <div id="wait" class="status">
    <img src="please_wai t.gif">
    </div>

    JAVASCRIPT:
    function ShowPleaseWait( )
    {
    document.all?do cument.all.wait .style.visibili ty="visible":do cument.layers["wait"].visibility="vi sible";
    document.myForm .submit();
    }
  • rf

    #2
    Re: Please wait image does not animate


    "Danny Masti" <dkm77@yahoo.co m> wrote in message
    news:77aad539.0 309170726.477ae c00@posting.goo gle.com...[color=blue]
    > Hello,
    >
    > I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the
    > hidden div with the "Please Wait Message". It works fine. But if I
    > replace the "Please Wait Message" with an animated gif - the gif shows
    > up BUT it does not animate.
    >
    > How do I make the gif animate?
    >
    >
    > JAVASCRIPT:
    > function ShowPleaseWait( )
    > {
    >[/color]
    document.all?do cument.all.wait .style.visibili ty="visible":do cument.layers["w
    ait"].visibility="vi sible";

    This line says: show the image on the current page.
    [color=blue]
    > document.myForm .submit();[/color]

    This line says: abandon the current page, including all such things as gif
    animations, and start loading a new page from wherever the form points to.

    After this point the old page (the one with the gif on) has been discarded.
    It is still visible but only because the new page has not been rendered to
    the canvas yet.
    [color=blue]
    > }[/color]

    Cheers
    Richard.


    Comment

    • Danny Masti

      #3
      Re: Please wait image does not animate

      Gotcha - thanks Richard.

      Any way we could make this work?

      Comment

      • Bernard Lechler

        #4
        Re: Please wait image does not animate

        Use Flash.

        Comment

        Working...