1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Animated Image not works when page is submitted

Discussion in 'Firefox, Thunderbird & SeaMonkey' started by janwar73, 2005/12/12.

  1. 2005/12/12
    janwar73

    janwar73 Inactive Thread Starter

    Joined:
    2005/12/12
    Messages:
    2
    Likes Received:
    0
    Hi,
    When I try to show a progress bar (animated gif) right after submitting a page - it stops animation and post the data.
    This does not happens in IE but happens in all Netscape browsers.
    Can't find anything from online forum.
    Please advice. Is this is a known bug or limitation in Netscape.

    Thanks in adv.
    janwar73
     
  2. 2005/12/12
    Ramona

    Ramona Geek Member Alumni

    Joined:
    2001/12/31
    Messages:
    7,481
    Likes Received:
    2
    Welcome to the Forum, janwar73!

    janwar73,

    Are you saying that this is a webpage that you are creating, where the animated progress bar doesn't work? If so, can you give us a link to the page?

    Thanks!
     

  3. to hide this advert.

  4. 2005/12/12
    janwar73

    janwar73 Inactive Thread Starter

    Joined:
    2005/12/12
    Messages:
    2
    Likes Received:
    0
    Thanks for a quick response!
    Actually its an intranet page so you can't access it but here is what I am doing-
    1. On the 'OnSubmit' event of a button - I am calling a Javascript method to do some validations and then post it through Javascript.
    e.g.:
    function validate()
    {
    /** do some validations **/
    document.forms[0].method = "Post ";
    document.forms[0].action = document.forms[0].formAction.value; document.forms[0].submit();

    // Turn Progress Bar visible
    if(document.all && document.all.progressBar.filters) {
    eval( "document.all.progressBar ").style.visibility = 'visible';
    }
    else if(document.all) {document.all.progressBar.style.visibility = 'visible';}
    else if(document.getElementById) {document.getElementById( "progressBar ").style.visibility = 'visible';}
    return false;
    }

    2. This will unhide the dhtml layer which has an 'Animated Progress bar' running for unlimited time.

    3. I want to show something to the users until the servlet processes my request and returns a 'Thank you' page.

    4. But somehow the animation stops.

    Hope I'm clear.
    Let me know if you need the whole code.
    Its pretty simple and the same thing works in IE based browsers.
    Thanks
     
  5. 2005/12/12
    Ramona

    Ramona Geek Member Alumni

    Joined:
    2001/12/31
    Messages:
    7,481
    Likes Received:
    2

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.