Hi,
I'm looking for a way to "throw" an event.
Let's me explain. I have a form with a button. When you click the button
a js function is called to confirm before submitting
ex. : (if confirm(...) theForm.submit( )).
Ok, that works.
Now, in the form I'm using HTMLArea (see sourceforge.net ) which reacts on
the 'submit' event.
My problem is that when the function form.submit is called, the onsubmit
event is not invoked (see MSDN doc). So the HTMLArea doesn't reacts.
I need a confirmation before submitting but then I can't submit because it
doesn't invoke the needed submit event...
So I'm looking for a way to "throw" an event (as I can throw exception
in java).
Do you know a trick/url/doc/rtfm that can help me ?
--
Patrick
I'm looking for a way to "throw" an event.
Let's me explain. I have a form with a button. When you click the button
a js function is called to confirm before submitting
ex. : (if confirm(...) theForm.submit( )).
Ok, that works.
Now, in the form I'm using HTMLArea (see sourceforge.net ) which reacts on
the 'submit' event.
My problem is that when the function form.submit is called, the onsubmit
event is not invoked (see MSDN doc). So the HTMLArea doesn't reacts.
I need a confirmation before submitting but then I can't submit because it
doesn't invoke the needed submit event...
So I'm looking for a way to "throw" an event (as I can throw exception
in java).
Do you know a trick/url/doc/rtfm that can help me ?
--
Patrick
Comment