similar to: How to use "form_remote_tag" to retrieve the values

Displaying 20 results from an estimated 10000 matches similar to: "How to use "form_remote_tag" to retrieve the values"

2006 Mar 18
0
Catching Errors
Hi all, I am validating a form, wherein i could display all the error messages are displayed in the same page, but the problem is whenever it displays the errors at the same time it is refreshing all the fields. Instead, I am interested in preserving the validated values but refreshing only the fileds that failed validations and corresponding message to be displayed. In some post i read
2006 Feb 01
3
Problem using form_remote_tag and multipart
I have a form and e file field, and what I''m trying to do is when the file is uploaded, a div shows the uploaded image using ajax, without refreshing the page. But the problem I''m having is that with form_remote_tag it won''t accept :multipart => true. Any ideas? Thanks a lot
2006 Mar 15
4
Ruby - Feed Generators
Hi All, Can anyone help me in making feed[xml/rss] generator for a webpage based on ruby/ruby on rails. Tell me if any ruby code is already available, to generate feeds for a webpage. Thanks in Advance. Sumanth. -- Posted via http://www.ruby-forum.com/.
2007 May 25
1
form_remote_tag :condition
I am using the following validation prototype-based js library: http://tetlaw.id.au/view/javascript/really-easy-field-validation What I am trying to do is upon submitting a form via AJAX, I want it to meet the conditions of the validation of the function validateMe() If it passes, go ahead and continue and push the form information via an AJAX call. This is what I have: <% form_remote_tag
2006 Jun 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form asynchronously. Easy done. However, we also want to add an observe_form tag to check for some value changes while the form is being entered. The observe_form tag needs a dom id to work on but I can''t see how to enter an html option for the dom id of the form on the form_remote_tag. Any ideas? Here is the form tag so far...
2006 Nov 04
0
form_remote_tag problems with post url
Hi, I''m hitting a bump with the form_remote_tag, and wondering if anyone can help.. SO i''m trying to implement a tag-based search on a site and using routes, I can enter a url such as http://localhost/tag/query , which calls an action ''search'', and returns all the posts which are tagged with the word ''query''.. fine... In the
2006 Jul 22
0
form_remote_tag and send_file
All, I have an existing form that calls an action which in turn creates a PDF and sends it to the browser using send_file. I want to change this form to use form_remote_tag so that I can set a progress bar and once the PDF is finished, the progress bar hides and the PDF opens. The send_file data is being sent to the browser, but not displayed anywhere. When I use a regular form post, it
2009 Sep 17
2
Can i use "form_remote_tag" inside the "form_tag"?
Hi all, How can i use form_remote_tag inside the form_tag helper . My application has following view subscribe.html.haml - form_tag :action => :subscribe do /other form element %input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"monthly"} %input{:type=>''radio'',
2006 Mar 15
2
Using form_remote_tag, setting the form name
I''m using form_remote_tag like this: <%= form_remote_tag \ :update => "div_id_dataentry_bottom_ajax", :loading => "document.getElementById(''wait'').innerHTML=''Loading...'';", :url => { :action => "dataentry_bottom_edit" } %> And it makes this code: <form
2006 Jul 27
1
form_tag vs form_remote_tag ----- the :condition option
form_remote_tag has a really useful little thingamob called :condition. you give it a string which is then interpolated into the form tag in such a way that the form is only submitted if :condition evaluates in javascript to true. so the logical thing to do is give it a JavaScript function <%= form_remote_tag ( :condition => ''your_function_here()'',
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ? My form looks like this: <%= form_remote_tag :url => { :action => ''do_image_upload'' }, :html => { :enctype => ''multipart/form-data'' } %> <%= file_field ''image'', ''file_data'', :size => 32 %> <%= submit_tag
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with an additional javascript directive? eg I''d like for an inline javascript to make the form''s div container hidden as soon as the button is pressed to avoid having it possibly get pressed again ( sometimes the rails response is slow enough for a user to think they need to re-press it ). example: <div
2006 Aug 15
0
Can you use form_remote_tag to upload files?
I have the following form_remote_tag: <%= form_remote_tag(:update => ''target_lists'', :url => { :action => ''upload_list'' }, :html => { :multipart => true }) %> I then submit using a regular submit tag <%= submit_tag ''Upload List'' %> Does the Form.serialize call that is
2006 Jul 11
0
Please please somebody RESCUE me Reg. form_remote_tag !
Hi frenz, I need to update "div_main_data" on click of one submit button and I need to update "div_member" on change of one select option. But couldn''t find any solution at the moment. If I use -> :onChange =>''this.form.onsubmit()'' this update the whole "div_main_data" as I couldn''t toggle the update parameter in
2006 Jul 11
1
form_remote_tag ISSUE !
Hi frenz, I need to update "div_main_data" on click of one submit button and I need to update "div_member" on change of one select option. But couldn''t find any solution at the moment. If I use -> :onChange =>''this.form.onsubmit()'' this update the whole "div_main_data" as I couldn''t toggle the update parameter in
2006 May 12
1
Uploading a file with form_remote_tag problem.
params[uploaded_file] is not recognised when i try form_remote_tag like this: <%= form_remote_tag :url=>{:action => "save_file"} ,:html=>{:multipart => true} <%=text_field_tag "name"%> <input type="file" id="uploaded_file_file" name="uploaded_file[file]"/> <input type="submit"
2006 Jan 18
0
form_remote_tag and 302 redirects under IE6 bug
I believe I''ve found a bug in which a custom HTTP code handler in the code generated by form_remote_tag does not get called under IE6. The below example simply redirects the browser to the value in the location header when it gets back a 302 redirect: #### start code #### <%= form_remote_tag :url => {:action => "comment", :id => @article},
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
<%= form_remote_tag :url => { :action => ''list_setups'' }, :loading => "Element.update(''setupslist_display'',''''); Element.show(''setupslist_progress'')", :loaded => "Element.hide(''setupslist_progress'')", :update => ''setupslist_display'',
2008 Jul 10
0
JavaScript Form Submit with form_remote_tag
I am trying to submit a form_remote_tag using javascript instead of a regular form submit button. Here is my code: <%= form_remote_tag( :url=> { :controller=>''store'', :action=>''add_to_cart_ajax'', :id => @product.id, :variation => @variations[i].id }, :html => {:name => ''add_product_form''}, :complete =>
2007 Sep 07
0
form_remote_tag :confirm tag
<% form_remote_tag( :url => { :action => ''add_items'', :id => @vtl.id}, :html => {:id => ''add_items_form''}, :confirm => "Are you sure stuff" ) do %> That is the generic form_remote_tag that i have used so far. But, in one case, I have to conditional pop up the confirm dialog. If a, use