Hello,
I am trying to submit a remote form without having to use the standard
submit_form button.
This is the call from my form:
<% form_remote_tag :html => {:name => ''myform''}, :url
=> {:action =>
:update_doc, :id => @doc} do -%>
and this is the link that i am using to submit the form:
<%= link_to_function ''Save'', "myform.submit()"
%>
The call to update_doc renders a rjs template. I think this should work
- but i keep getting a popup asking me to save a file - which contains
the follwing:
try {
new Effect.Highlight("myform",{});
} catch (e) { alert(''RJS error:\n\n'' + e.toString());
alert(''new
Effect.Highlight(\"myform\",{});''); throw e }
What am i doing wrong - i figure it has something to do with the ajax
call to submit the form - which itself performs an ajax call to
update_doc.. how can i get around this???
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---