the method is $('formid').send(); on mootools.
more on the docs:
http://mootools.net/docs/core/Request/Request#Element:send
--
Fábio Miranda Costa
Solucione Sistemas
Front-End Engineer
http://meiocodigo.com
On Mon, Sep 7, 2009 at 12:11 PM, 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.