search for: form_remote_for

Displaying 20 results from an estimated 27 matches for "form_remote_for".

2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for form_remote_for? I''d like to do this :loading => "Element.show(''form-indicator'') and this :loading => "Element.hide(btn-submit'') Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermai...
2007 Apr 25
2
form_remote_for, reloaded
...d><%= f.text_field :description, :size => 50 %></td> <td><%= submit_tag "Zeit Erfassen", :class => "submit" %></td> <% end %> </tr> Works fine. Iterating in small steps to AJAX, the next iteration was: <tr> <%form_remote_for :time_record, :url => { :action => "add_time_record" } do |f| %> <% f.date_select(:day, :disabled => true, :order => [:day, :month]) %> <td><%= f.date_select(:day, :order => [:day, :month]) %></td> <td><%= f.collection_select(...
2007 Feb 27
0
form_remote_for & file uploads
Has anyone successfully gotten Ajax file uploads working using form_remote_for & attachment_fu? I have seen Sean Treadway''s responds_to_parent plugin and many other samples available, and they all seen to statically generate <form> tags. Is there a way to get a file upload to work using the Rails helpers? <% form_remote_for(:message, @message, :url =&...
2009 Feb 10
0
Re: form_remote_for NOT passing param: I want put and I get
...ngs after the first hash, look at the docs for the form reote for -----Original Message----- From: Raimon Fs <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> Sent: Tuesday, February 10, 2009 5:08 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: form_remote_for NOT passing param: I want put and I get Frederick Cheung wrote: > On 10 Feb 2009, at 18:40, Raimon Fs wrote: > >> doesn''t work on 2.2.2, and I started to make changes and changes and >> read forums and the api, but no way ... >> > > Random guesses: assumin...
2006 Jul 14
9
DRY Javascript Degredation
...ts to a "new" page that displays the same form as would have been displayed with ajax. The problem is i have the entire code for this ajaxed form is in the view (rather than the non js "new" page which has the form code in "_form") I have it this way so I can do form_remote_for. I tried modifying "_page" to only have the form setup code, but then it complains about nil objects because i am setting up the form_for or form_remote_for in the view rather than in "_page". Is there some way to DRY this up easily or am I just destined to have my form...
2006 Aug 09
0
h() assistant or sanitize() with form_remote_for
How can I html-escape an input fieldin my form ? I cannot use them directly h(f.text_field ''name'', :size => 30 %) or sanitize(f.text_field ''name'', :size => 30 %) are incorrect.... <% form_remote_for :property, @property, :url => {:action => @action, :id => @property }, :loading => ''Form.disable("property-form")'', :complete => ''Form.enable("property-form")'', :html => { :id => ''property-form'' } do |...
2006 Sep 20
2
Not receiving form data using form_remote_for
..."description"=>"Test", "hours"=>"10"}, "commit"=>"Lagre", "period"=>"3", "action"=>"new", "controller"=>"period"} as I expected but when changing the form_for to form_remote_for I only receive this: Parameters: {"period"=>"3", "action"=>"new", "controller"=>"period"} Does anyone have a clue what I am missing here? Thanks, Andrè --~--~---------~--~----~------------~-------~--~----~ You received this...
2006 Nov 04
0
Controller don''t receives form parameters using form_remote_for
...;description"=>"Test", "hours"=>"10"}, "commit"=>"Lagre", "period"=>"3", "action"=>"new", "controller"=>"period"} as I expected but when changing the for_for to form_remote_for I only receive this: Parameters: {"period"=>"3", "action"=>"new", "controller"=>"period"} Does anyone see what I''m missing here? Thanks, Andr? -- Posted with http://DevLists.com. Sign up and save your mailbox.
2009 Feb 10
2
form_remote_for NOT passing param: I want put and I get post
...is ajax issue ... Basically I have a form for creating records, and I want to submit it using Ajax. On previous versions of RoR (2.0.2) it was working, but the same methods doesn''t work on 2.2.2, and I started to make changes and changes and read forums and the api, but no way ... <% form_remote_for (:expedient, :url => {:action => ''create_ajax''}, :update =>''div_listd'') do |f| %> <table class="edit"> <tr> <td class="label" width="100px">Referencia</td> <td class="data">&lt...
2006 Aug 12
0
select in form_remote_for
I am trying to use a slect box in my form, but I am stuck with an error I cannot understand... here is what I wrote according to the documentation ... <%= f.select ("property", "user_id", User.find_all.collect {|u| [ u.name u.id ] }, { :include_blank => true }) %> user_id is a FK to a user (owner of the property) Associations : User has_many properties,
2007 Mar 14
9
file_field doesnt work inside form_remote_for
When I do file_field within a form_for things are fine... but within a form_remote_for, with nothing else changed, I find that the params does not even have the element document[uploaded_file] even though it is definitely present in the HTML source in the form. Obviously the file upload fails. Am I missing something? Or has someone else faced this? Or is this a known bug? Rajesh...
2007 Sep 20
2
Rendering a partial from within that partial
I am having trouble rendering a partial called ''names'' through a submit tag located within that partial. The form data is saving with my current code. However, the existing data is not loading into the form and the partial is not being re-rendered upon submission to reveal the changes to this data.What might I do to fix this? show.rhtml <%= javascript_include_tag :defaults
2009 Mar 01
15
Ajax in Rails
...and am now starting to play around myself. I''ve been trying to create a simple form which when a user enters any data that data is displayed as a preview elsewhere on the page instantly, just like when creating an advert with Google Adwords, the preview is shown. I''ve been using form_remote_for and observe_form but I don''t seem to be having much luck at all. I am unsure how to use the controller to get the form fields and pass them back to a partial to be rendered? Here is my form: <% form_remote_for @advert do |a| %> <label>Title:</label> <%= a.text_field...
2011 Mar 04
1
form_for_tag - difference between that and form_remote_tag and form_for?
What''s the difference between form_for_tag and form_for? And between form_remote_for and form_remote_tag? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscri...
2007 Jul 14
3
observe_field, does this generate HTML?
I don''t have Rails installed at the moment, I''d like to check myself, but it''s just a simple curiosity. observe_field fits into replacement tags <%= %>, which caught my attention because as far as I know it''s just javascript observing a field and should not stick anything into HTML. Is <%= merely used as an enabling method, or will there actually be
2007 May 09
1
How can I change a form's onsubmit event handler using rjs?
Hi all, I have a ajax form creating by "form_remote_for", whose url is to create a new model by default. The page doesn''t change after the ajax call on submit button so the form is still there after the new model is created. But if I submit the form for the second time, I want to update the formerly created model using an Ajax post. I thi...
2010 Jul 20
20
render :js => "alert('Test !')"
Hi Folks, I use render :js => "alert(''Test !'')" in my modele, but instead of having the alert displayed, the browser try to donload a file containing this string : <<render :js => "alert(''Test !'')">>. Do you know why I the browser behaves such a way ? Regards -- Posted via http://www.ruby-forum.com/. -- You received
2008 Jul 14
5
How can i use link_to_remote with in form_for
Hi anybody plz help me how can i use link_to_remote with in form_for.. i tried but no luck... if i use form_tag i can able to use link_to_remote and made ajax call.but i need to use form_for ....can anyone help me how can i do with this.Thanks in advance. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2008 Mar 11
1
fields_for in a form_for_remote?
Can you nest fields_for in a form_for_remote? -- 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
2008 Jul 08
0
Ajax form - updating with validation errors from model
Is there a DRY way to pass back errors from the model validation to an ajax form (form_remote_for)? Thanks for your help --~--~---------~--~----~------------~-------~--~----~ 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...