search for: thisform

Displaying 3 results from an estimated 3 matches for "thisform".

Did you mean: theform
2007 Dec 15
3
List Box Issue - Should be easy, but nor for me!
I have the following snippet in my app: <% @anitem = Item.find(:all, :conditions => "id = " + params[:id]) %> <% form_for :anitem, :url => { :action => :updateitem } do |thisform| -%> ... ... (some code...removed) ... <%= collection_select :thisform, :item_category, ItemCategory.find(:all), :id, :name %><br> <%= collection_select :thisform, :packing_list_type, PackingListType.find(:all), :id, :name %> <%= submit_tag ''Update'&...
2010 Aug 14
1
Rail3: UJS submit after client-side validation
...nd the validation would work, but I could not get the form to submit. Debugging all seemed to work (names, classes, etc) Behaviors.add("click", "validate", function(element) { var formElements = $$(".required", ".required-one"); var valid = true; var thisform = element.form ... validations stuff but when I got to the end if(valid){thisform.submit()} would fail saying the input element does not have a function submit. thisform is reported as and htmlformelement. I know this may be a little off target but I bet I am not the only one using client-si...
2005 Jun 10
1
Submitting an ajax form via a select
...t seem to do it. The problem holding me up, is that I can''t figure out how to set the ID of the form when using a form_remote_tag (I need to use the ID of the form as the forms on the page are variable, so I can''t reference it in the form array). Setting :id => ''thisForm'' is wholly ignored, as is trying it in a set of curly brackets after the other values (ala, the html_options field for other form helpers). start_form_tag seems to be similarly limited. I''ve gotta be missing something, but I''ve searched both the api my rails b...