Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript Error

    Hi Friends.

    I have a problem . This is the DESC of my problem.

    I have a form . it has some query and it is generate some reports. [get data from database] . so it has some time . i put the javascript time out setTimeOut().

    with in the process i want to show my progress bar and when the time out finish then shows the data on the web page.

    Pl can u send a code. (Example).

    thanks

    Bhagya

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,518
    Thanks
    3
    Thanked 506 Times in 493 Posts
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    <script language="JavaScript" type="text/javascript">
    <!--
    
    function zxcBar(zxcid,zxcinc,zxcdly,zxcpos){
     var zxcbar=document.getElementById(zxcid);
     var zxcpos=zxcpos||-parseInt(zxcbar.style.width)+'px';
     if (parseInt(zxcpos)<0){
      zxcbar.style.left=(parseInt(zxcpos)+zxcinc)+'px';
      setTimeout(function(){ zxcBar(zxcid,zxcinc,zxcdly,zxcbar.style.left); },zxcdly);
     }
    }
    //-->
    </script></head>
    
    <body onload="zxcBar('Tst',10,500);" >
    <div style="position:relative;overflow:hidden;width:200px;height:20px;background-color:#FFFFCC;" >
    <div id="Tst" style="position:absolute;overflow:hidden;left:-200px;top:0px;width:200px;height:20px;background-color:#FF9966;" ></div>
    </div>
    </body>
    
    </html>
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/

  • #3
    New Coder
    Join Date
    Aug 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ok Thanks

    dear Friends

    Thanks a lot.

    Bhagya


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •