Are you sure that the my_event() function is being called and the
first part of the code being executed?
On 8/23/05, Alan Bullock
<liststuff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I need to create a new AJAX request in response to an event occuring
> on the page. my_event() is a js function which catches the event and
> does some processing, and it then needs to submit a form using ajax.
> I''ve tried this which seems to have no effect :
>
> new Ajax.Request(''/book/move_across'',
> {parameters:Form.serialize(''book_info''),
evalScripts:true,
> asynchronous:true});
>
> that code was generated by submit_to_remote(). If I manually click the
> resulting button it works great, but if I take the code and put it and
> the end of my_event() it does nothing.
>
> does anyone know where I''m going wrong?
> thanks
> al
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>