Need Help What Is Wrong?

Discussion in 'JavaScript' started by snotb4ll, Feb 3, 2010.

  1. #1
    Hello,

    Below is my code and it is not getting the page where it says "return getPage"


    <script type="text/javascript">
    var varuSec = 5;
    var t;
    function timerWin(){
    // alert(varuSec+' varuSec');
    if (varuSec > 0){
    varuSec--;
    document.getElementById('secleft').innerHTML = varuSec;
    }
    if(varuSec==0){
    return getPage('http://www.XXXXXXXX.com/content/new.member.update.php', 'messageArea', 'sid=10000;sem=100000;admin=0;sd=;cer='+document.getElementById('credit_win').innerHTML);
    return true;
    }
    t = setTimeout("timerWin()", 1000);
    }
    setTimeout("timerWin()", 1000);
    </script>

    How can I get it to open that page or go to that page when it hits 0 seconds.
     
    snotb4ll, Feb 3, 2010 IP
  2. v368

    v368 Guest

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can you show me function getPage
     
    v368, Feb 4, 2010 IP
  3. nehakv

    nehakv Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    inorder to check the code properly and suggest you about your questions you need to give the html form and also the get page function..
     
    nehakv, Feb 4, 2010 IP