I could really use a hand figureing this out... I have the following code with the init() call in the body of the page sop that it is called every so many minutes:
function init(){
window.setTimeout("force_submit()", 1000*10*1)
}
function force_submit(){
alert("Please save your work at regular intervals. Click OK to save your work now.")
document.form_application.elements["action"].value = "SAVE"
document.form_application.action="applicationform2003.asp?Step=<%Response.Write(Request.QueryString("Step"))%>"
document.form_application.submit()
}
the 'action' element is is the name of a submit button. the second reference of action changes the forms action and then it is submitted... i know that the form is submitted to the correct place but the value of the button is not being set... can someone tell me the silly thing that i am doing wrong?
if you need further explanation please just ask
CES
function init(){
window.setTimeout("force_submit()", 1000*10*1)
}
function force_submit(){
alert("Please save your work at regular intervals. Click OK to save your work now.")
document.form_application.elements["action"].value = "SAVE"
document.form_application.action="applicationform2003.asp?Step=<%Response.Write(Request.QueryString("Step"))%>"
document.form_application.submit()
}
the 'action' element is is the name of a submit button. the second reference of action changes the forms action and then it is submitted... i know that the form is submitted to the correct place but the value of the button is not being set... can someone tell me the silly thing that i am doing wrong?
if you need further explanation please just ask
CES