similar to: form_remote_tag :confirm tag

Displaying 20 results from an estimated 50000 matches similar to: "form_remote_tag :confirm tag"

2008 May 09
1
csv file transfer with form_remote_tag?
Good morning! I have a case where I need to build a csv file from my model and allow a user to download/save that file. I''ve got this all working with non-Ajax forms, but the generation of the csv file can take quite a bit of time, so I want to provide a busy indicator for my user. So I tried the following in my view: <% form_remote_tag ( :url =>{:action =>
2005 Jul 24
0
submit tag confirm
Well, hmm... I can get a nice javascript confirm with the link_to helper like this: <%= link_to("remove", {:action => "remove_person", :etc etc}, {:confirm => "Are you sure?"}) %> But if I try something similar in a submit tag, the javascript does not work: <%= submit_tag("Remove Person", {:confirm => "Are you sure?"})%> Is
2006 Jul 30
0
form_remote_tag and rendering partials with <script> tags
Has anyone successfully used a form remote file upload either by using the respond_to_parent plugin or kylemaxwell''s form_remote_tag plugin to render a partial or code with <script> tags in it. This would be very useful for RoR''ers to create new ajaxy elements. If you can, can you post a sample code if you got it working. -- Posted via http://www.ruby-forum.com/.
2009 Aug 16
4
How show validation errors in form_remote_tag?
I suspect this has been asked 400 times, but Google yields 2-3 rather complex gymnastics in blogs (and possibly dated), and searching list archives on ruby-forum proves kinda useless. Using standard forms, it''s fairly easy to use @object.errors[:field_name] in the form to embed an error message right next to the field that has the invalid entry. The controller uses a simple conditional
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 Dec 12
0
how can I use form_remote_tag to go to a different host ?
Here''s sort of what I am trying to do if it''s possible: We have a server that uses TCL and can''t do any ajax. What I did was wrote a simple Rails app that uses form_remote_tag to get some text on a post and then displays back some text into a div via ajax and a partial render. I wanted to take all the html, javascript, and ajax calls that the Rails template creates