P
prodizy
Hi,
In Firefox, what's the best way of tracking the form submit?
The following are two ways I tried, but they won't work if the form is
submitted through JavaScript.
Method 1: using the window.onsubmit event handler
Code: window.onsubmit=handleEvent;
Method 2: I am attachin event listeners to all the forms for the event
submit.
Code:
for(var i=0;i<forms.length;i++)
{
var form=forms;
form.addEventListener("submit",handleEvent,false);
}
It seems submit event is not generated if the form doesn't have a
submit button. Why so?
What's the best way through which what ever way the form is submitted,
I should be able to track it.
Thanks & Regards,
Rajendra Prasad Murakonda
http://prodizy.livejournal.com/
In Firefox, what's the best way of tracking the form submit?
The following are two ways I tried, but they won't work if the form is
submitted through JavaScript.
Method 1: using the window.onsubmit event handler
Code: window.onsubmit=handleEvent;
Method 2: I am attachin event listeners to all the forms for the event
submit.
Code:
for(var i=0;i<forms.length;i++)
{
var form=forms;
form.addEventListener("submit",handleEvent,false);
}
It seems submit event is not generated if the form doesn't have a
submit button. Why so?
What's the best way through which what ever way the form is submitted,
I should be able to track it.
Thanks & Regards,
Rajendra Prasad Murakonda
http://prodizy.livejournal.com/