search for: remote_form

Displaying 6 results from an estimated 6 matches for "remote_form".

2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2006 Apr 27
1
Ajax response won''t display
I''m hopeful that this is something simple i''m missing, but I''ve run out of things to try. It should work just like the example in Agile Web Development with Rails (i think) I send an ajax request using remote_form and it''s processing correctly on the server and returning a new form, but it won''t replace the original. It''s supposed to update a div with class="update". Help would be REALLY appreciated. This is my page (excluding layout that add the required javascript) an...
2006 Apr 08
2
Multiple submit buttons
Hi, How do i differentiate different submits tags / buttons on one form. Say I want to create an edit form and I want to provide two buttons; one to save and one to cancel. I would have: <%= submit_tag ''Ok'' %> <%= submit_tag ''Cancel'' %> How do I know which button get pressed by the user? One more thing, how to specify the default selection in a
2006 Apr 05
2
RJS and remote forms
I''ve run into what I think is a browser bug related to using remote_forms pushed in an RJS update. In my controller, I have an action that creates a new model and returns a form for one of its children: def create_party party = Party.create render :update do |page| page.insert_html :top, ''party-list'', :partial => ''party_h...
2007 Jun 03
3
remote_form_for issue
Hi everybody, I''m trying to change my current forms in my app to remote_forms. It was my understanding that remote_form_for and form_for work in the same way, so I just wanted to change the methods. My code looks like: <% form_remote_for :post, :url => posts_url do |f| %> <%= render :partial => ''form_posts'', :locals => {:f => f} %&g...