Results 1 to 3 of 3

Thread: Button Problem

  1. #1
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Button Problem

    Hi there all,

    Hows everybody doing? I have been trying to make a button to be clicked on instead of poping up a window or changing the browser. So I want to click on the button, I dont want it to open a window or do it by itself.

    This is the code:
    Code:
    <td><form name="wait" id="wait">
                                          <div align="center" class="style19"> <span class="style18">
                                            <input name="text" type="button" disabled="true" class="lstbox2" id="sect" value="FREE" />
                                          </span></div>
                                      </form></td>
                                    </tr>
                                  </table>                                
                                  <p align="center">
                                    <script type="text/javascript">
    <!--
    var secs = 30;
    var wait = secs * 1000;
    for(i=1;i<=secs;i++) { window.setTimeout("update(" + i + ")", i * 1000); }
    
    window.setTimeout("timer()", wait);
    
    function update(num) {
     if(num == (wait/1000)) {
      window.location.href = 'complete.php?id=<?=$key?>';
      }
     else {
      printnr = (wait/1000)-num;
      document.wait.sect.value = "" + printnr + "";
     }
    }
    //-->
                </script>
    Thanks very much for your time and support because I know you guys are pro's in this forum.

    Best Regards,
    Private_Guy
    Last edited by Private_Guy; 06-27-2007 at 01:56 AM.

  2. #2
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried changing the following code:
    Code:
    window.parent.location = 'complete.php?id=<?=$key?>';
    to
    Code:
    onClick = 'complete.php?id=<?=$key?>';
    But no success, it didn't work :S

  3. #3
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    *Fixed* Thanks anyway

Bookmarks

Posting Permissions

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