Why does this form_remote_tag call generate this form tag with both
"post" and "get" action?

form_remote_tag :url=> events_path, :method => "get", :html => {:id =>
"search_form"} do


html output.

<form onsubmit="new Ajax.Request('/events', {asynchronous:true,
evalScripts:true, parameters:Form.serialize(this)}); return false;"
method="post" id="search_form" action="/events">

This is messing up my submissions, when I define a submission on the
event of a select tag in the form changing..with a javascript call
of ..this.form.onsubmit(), it works fine. but if I call form
submission from a call back using jquery.

$j("search_form).submit();, it tries to do a post submission which
fails with unauthorized error.

Please help.

Thanks

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to