|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help on auto submit a form having two submit button
Hello,
I am working on testing tool software (phpTest)written in php and trying to put a timer/countdown on it. I used javascript on countdown, it works when I only put an alert but when I used document.test.submit(), it only refreshes the page and not moving on to the next question. I have posted my problem here coz my prob might lies on the my javascript, Is there any way to triger the action that I want to press the next button and not just refresh the page? [javascript] <script LANGUAGE="Javascript"><!-- function go_on() { document.test.submit(); } var i=5; function countDown() { if(i >= 0) { document.frm.clock.value=i; i = i-1; var c = window.setTimeout("countDown()", 1000); } else { go_on(); } } //--></SCRIPT> [/javascript] Thanks in advance, Army |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Help on auto submit a form having two submit button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|