In simple lines

Form.set('send',{'onSuccess': function(responseText, responseXML){/* do
domething with response */});
Form.send();


You better read about the full extend of the capabilities and params you
cans set/send


On Mon, Sep 7, 2009 at 11:11 AM, H13 <[email protected]> wrote:

>
> Hi, is there some equivalent for jquery's submit() in mootools.
>
> If I use this with jquery:
> <form method="post" action="" id="form1" >
> ...
> </form>
> <a onclick="$(\'#form1\').submit();" >Send</a>'
>
> The site will be not reloaded and AJAX code will be run:
> $('#form1').submit(function(){ ...
>
>
> but if I use the same with mootools:
> <form method="post" action="" id="form1" >
> ...
> </form>
> <a onclick="$(\'form1\').submit();" >Send</a>'
>
> The site will be reloaded and no AJAX code will be run :-( :
> $('form1').addEvent('submit', function(e){
>                new Event(e).stop(); ... will be ignored :-(
>
>
> Is there some solution, so form can be submitted (with help of AJAX)
> in case user clicks on URL
>
> Thank you for your help.

Reply via email to