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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top