Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > __doPostback

Reply
Thread Tools

__doPostback

 
 
Garry Weston
Guest
Posts: n/a
 
      06-10-2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
__doPostback method with colons problem Steven Livingstone ASP .Net 15 08-28-2003 12:57 AM
__doPostBack code block not being generated by asp.net page E ASP .Net 3 07-31-2003 10:43 AM
__doPostBack EventArgument Hayato Iriumi ASP .Net 0 07-22-2003 04:36 AM
Overriding __doPostBack Mike Dunn ASP .Net 2 07-09-2003 08:25 PM
Wierd Behavior of __doPostBack paul reed ASP .Net 1 07-08-2003 04:26 PM



Advertisments