G
Garry Weston
I have several forms in a web application the allow the user to hit the
press the enter button and cause a postback.
I have the following javascript handling the key press if the key code is
13:
/* this function handles the actual submission of the search criteria */
function disableSubmit(){
// need to disable the submit button
document.getElementById("btnSubmit").value = "Please Wait ....";
document.getElementById("btnSubmit").disabled = true;
// force a postback with the btnDoSubmit as the caller
__doPostBack('btnDoSubmit','');
}
My problem is, that on one page this code does not work.
The olny difference between the forms is the way they are called via a hyper
link. This form has a target of _blank.
I keep getting the following error.
Microsoft JScript runtime error: Object expected
Any help would be appreciated.
Thanks
press the enter button and cause a postback.
I have the following javascript handling the key press if the key code is
13:
/* this function handles the actual submission of the search criteria */
function disableSubmit(){
// need to disable the submit button
document.getElementById("btnSubmit").value = "Please Wait ....";
document.getElementById("btnSubmit").disabled = true;
// force a postback with the btnDoSubmit as the caller
__doPostBack('btnDoSubmit','');
}
My problem is, that on one page this code does not work.
The olny difference between the forms is the way they are called via a hyper
link. This form has a target of _blank.
I keep getting the following error.
Microsoft JScript runtime error: Object expected
Any help would be appreciated.
Thanks