Catching autopostback in client script before submitting

S

sdr

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top