So this is what you want?
http://mooshell.net/VNE5e/
On Sep 8, 2009, at 3:11 PM, Aaron Newton wrote:
On Tue, Sep 8, 2009 at 1:33 PM, H13 <[email protected]> wrote:
Hi, did you read the post.
Of course that I use:
$$('form.formclass').addEvent('submit', function(e){
new Event(e).stop();
I am not trying to solve problem with submit button. I am trying to
solve problem with starting submit button with URL link.
So, if you click on URL, with help of onlclick="$('formid').submit()
you should run the submit process which will be catched by submit
event:
$$('form.formclass').addEvent('submit', function(e){
new Event(e).stop();
BUT THE PROBLEM IS NOT SUBMITTING THE FORM, THE PROBLEM IS THAT IF YOU
RUN SUMBIT BUTTON WITH HELP OF URL (ONCLICK) THEN THE SUBMIT EVENT
WILL BE NOT CATCHED BY MOOTOOLS :-(
in that case you do need to use fireEvent('submit'). Note that this
will not pass along an event object to call preventDefault or stop on.