search for: form_remote_tag

Displaying 20 results from an estimated 284 matches for "form_remote_tag".

2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello, Is there a way to set the html element id for the form_tag and form_remote_tag on the server side? I want to have this resultant html... <form id=''something'' ... ... </form> Thank you, Brian Takita
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_r...
2008 Oct 03
7
form_remote_tag and :with
I am trying to pass the result from a javascript function along with the result from a text_field with form_remote_tag. This is what I have so far, but no go: <% form_remote_tag(:url => {:controller => ''requests'', :action => ''create''}, :with => "''data=''+request()", :update => ''request_sent'' ) do %>...
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi, Has anyone successfully implemented the :onsubmit option for form_remote_tag. It doesn''t seem to work for me. Is there any specific version of rails which is required for the same. Here''s my piece of code. <script> function set_tojid(){ alert(''onsubmit''); } </script> <%= form_remote_tag :update => '''...
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...
2006 Mar 28
5
Is it possible to upload file with form_remote_tag?
I have tried to upload a picture file with file_column plugin and form_remote_tag, but no success. When I do request.params.inspect it shows null for picture parameters. With normal form the file uploads nicely, so is it possible to upload file with form_remote_tag? -- Posted via http://www.ruby-forum.com/.
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=>'...
2006 Aug 15
2
Are form_remote_tag and submit_to_remote mutually exclusive?
Do I need to use submit_to_remote in conjunction with or instead of form_remote_tag? The description in the API docs. is confusing. Is the combination of form_tag/submit_to_remote valid? Is the combination of from_remote_tag/submit_tag valid? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Jul 06
7
form_remote_tag submitting to an rjs file.
I have the following form that I am trying to use, but for some reason, the form gets submitted with out the params values. <%= form_remote_tag(:url => { :action => :add_item_to_order }) %> <tr> <td> <%=collection_select(:order_item , :item_category_id, @item_categories, :id, :name)%> </td> <td> <%= text_field ''order_item'', ''quantity'', :size =>...
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 mak...
2006 Jul 26
7
syntax for specifying :html fallback on form_remote_tag
Has anyone gotten the :html option for specifying a ''fallback'' action if javascript''s not enabled working on form_remote_tag (or remote_form_for)? I can''t figure out how to specify the action that''s supposed to be invoked if js _is_ enabled. Or maybe I''m just misunderstanding how this thing is supposed to work. I was assuming there''s some Rails magic going on where I can specify t...
2006 Jul 26
3
adding class or id tags to tags like linkto and form
I''m trying to figure out things like this by myself so I don''t bother my developer and slow him down. How do I add class or id css attributes to tags like this: <%= form_remote_tag :url => { :action => "send_url" } %> <%= link_to_remote "My Profile URL", :url => { :action => "send_profile_url", :id => @user.id } %> any help would be great. -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
Hi everyone, Newbie here. I''m trying to get a textual form element to submit in the context of a form_remote_tag block and having little success. Oddly (or perhaps not), using regular old form_tag in its place does cause the elements to be submitted. Here''s the relevant partial ERb code: <%= form_remote_tag( { :url => { :action => :out, :id => pending_task } } ) %> <tr class=&quot...
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'', ''...
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...
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 Jan 30
10
form_remote_tag and redirects
...ake. If the correct information is submitted, I want to redirect to some other page. The only solution I''ve found is the following, which is pretty ugly, as it displays the javascript I''m invoking on the page prior to the redirect. Here is the code: The Form ============ <%= form_remote_tag(:update => ''message'', :complete => evaluate_remote_response, :url => {:controller => ''login'', :action => ''login''}) %> The Action ============ if logg...
2006 May 06
5
form_remote_tag not posting data
I''m trying to use the form_remote_tag for the first time.. Here is my code: <%= form_remote_tag(:url => { :action => ''add'' } ) %> <td size=''100''><%= text_field_tag ''name'' %></td> <td size=''200''><%= text_field_tag ...
2006 Jul 05
1
Setting a HTML ID with form_tag / form_remote_tag
Hello, Is it possible to specify a HTML ID with the form_tag / form_remote_tag methods of the FormHelper? I specifically need this for javascript and css but can''t seem to find how to do it in the APIs. Cheers, Paul Shannon Web Applications Developer Codeweavers Limited -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath...
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 gives me an option to open or save the file. How do I get the form_remote_t...