PC Review


Reply
Thread Tools Rate Thread

Catching autopostback in client script before submitting

 
 
sdr
Guest
Posts: n/a
 
      22nd Jan 2008
Hello all,

I'm trying to set up a javascript manager for preventing form
submitting in certain cases. I have set up an interceptor that catches
postbacks and cancels them if needed.

This mechanism works just fine, except that with autopostbacks, the
intercepted postback never fires. For some reason, the postback is
just run.

Observing onbeforeunload event is unfortunately out of the question
due to UI requirements, unless someone is able to figure out how to
prevent the automatic prompt caused by cancelling the event.

TIA,

sdr
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Submitting a form to a CGI script via Outlook SomebodyWhoAsksTooManyQuestions Microsoft Outlook Discussion 0 26th Feb 2008 08:55 PM
.NET Client Submitting Tab Delimited String to C++ Server Loses Em =?Utf-8?B?TWF0dGhldyBXaWVkZXI=?= Microsoft Dot NET Framework 1 4th Mar 2007 02:58 PM
Autopostback prgrammitically from client-side script EC Microsoft ASP .NET 3 16th Oct 2004 05:12 AM
Autopostback fails because of script error Ethan Adams Microsoft ASP .NET 4 30th Jun 2004 06:04 PM
Client Side Web Request and auto-submitting ASP.Net pages Rick Strahl [MVP] Microsoft ASP .NET 2 8th Jan 2004 03:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.