similar to: syntax for specifying :html fallback on form_remote_tag

Displaying 20 results from an estimated 2000 matches similar to: "syntax for specifying :html fallback on form_remote_tag"

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 => '''', :url => {
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 Jul 05
1
Prototype Based Validation with form_remote_tag
Hello, I am attempting to use validation.js from http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototyp e/ with form_remote_tag. The rails form helper binds the needed Ajax.Updater to the onSubmit action of the form. The validation.js also attempts to bind to the onSubmit of the form. The logic that is needed is if( valid.validate() ) { ...Ajax.Updater... } where valid
2006 Aug 06
2
file upload with form_remote_tag
Is there a way to use form_remote_tag and to upload a file? The default behavior ignores the upload when the Javascript serializes the form to create the parameter list. Basically, i''m just looking for an ajax file upload capability. Any help would be appreciated. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
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_remote_tag
How can I get a name/id for a form using the remote form tag? <%= form_remote_tag :url => { :action => :add_to_cart, :id => timecard } %> gives me: <form action="/timecard/add_to_cart/4" method="post" onsubmit="new Ajax.Request(''/timecard/add_to_cart/4'', {asynchronous:true, evalScripts:true,
2006 Jun 23
3
form_remote_tag is not passing form params
I''ve searched and searched and searched again, and I cannot find any help with this problem. There''s an identical problem on this forum, but it was never resolved. I''ll try to re-open the subject with a bit more information. Problem: The form_remote_tag() method in my "list" view is not passing the params[] hash of the values stored within my form.
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 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 Jul 22
17
Problem getting form_remote_tag to work with image upload
Hey guys, I am trying to pass the parameters for the file being upload, but the params[] are not being passed. Ive read through some posts and realize this is an issue with RoR. I read through some of the posts and someone suggested using: http://svn.kylemaxwell.com/form_remote_upload/trunk/ I tried to install it, and although I thought I installed it correctly, it doesn''t work.
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
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 =>
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find anyone else who''s attempted to do this, and probably with good reason. Context: blog using AJAX What I''m trying to do: when the user initially saves a blog entry, or when auto-saving, I want subsequent saves to not create a new blog entry Why I can''t just reload the partial: -
2006 Apr 26
2
Problem with auto-submitting AJAX form
Hello, I have a form generated with form_remote_tag that contains a selection list. I would like to auto-submit the form when the user makes a choice in the selection list, so I added an option :onchange => ''this.form.submit()'' to select_tag Now what happens is that when I make a choice, the partial template get''s rendered as expected, but not replacing the
2006 Apr 09
4
submitting forms help
I cant seem to figure this problem out and i was hoping someone could help me out. I have a page with a list of forms. I would like the user to be able to submit each form individually, or submit them all at once, to a different action (bascially, one that will do batch processing of all the forms). Is this possble? Please help. -------------- next part -------------- An HTML attachment was
2006 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target pointing to the iframe. All is working, but I would like to display an indicator of the upload. All I want to do is show a hidden animated gif via Element.show. With form_remote_tag, i could use the :loading and :complete callbacks to do an Element.show and Element.hide. How do I achieve a similar effect with form_tag?
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that result in an ajax call that updates two sections on the page. Here is the code in the controller def create ... render :update do |page| page.replace_html ''list_items'', :partial => ''lists/list_items'' page.replace_html ''add_item'', :partial =>
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
2008 Jul 08
1
Problems with form_remote_tag
Hi, I am trying to use form_remote_tag to update a record and then update the section of the page where id=''opertion_panel''. There is a javascript validation that validates the input before the record is being updated. This validation works and the record was successfully updated. The problem is after the record is being updated, it didn''t update operation_panel.
2005 Dec 21
3
How to make a drop-down automatically submit an AJAX form
Hi, I know that to make a dropdown box automatically submit when you change the value, you do this: <select ..... onchange="this.form.submit();"> BUT i''ve got an ajax form, and if i do the above trick, it simply reloads the ajax partial into the whole screen, rather than into the div where it is meant to go. I''ve already got it all working so that if you click