View Full Version : Catch Submit() call
Hello!
Does anybody know how can I catch a call to submit() in forms?
This method doesnt fire onSubmit event.
Thanks.
Jon Hanlon
11-28-2006, 04:51 PM
NO, onsubmit() is not fired when you use submit(). This goes back to Netscape 4.
What are you trying to do?
Yes, thats what I said: it doesnt fire onSubmit event... then, its not helping me.
I'm trying to catch a communication with the web server from the client (Wait dialog exhibition).
Jon Hanlon
11-28-2006, 10:22 PM
Well then you pop some code into an onsubmit() handler, and also call this handler before you do a submit().
This is a possibility. But I'd like to do it without changing the existing code. I'm afraid there is no way :(
It works only when the form is submitted by pressing the button. Not when we use submit(), because it doesnt fire onsubmit.
The window object could have an object to catch communiction with the server. readystatechange event should work, but it doesnt.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.