similar to: collection_select default

Displaying 20 results from an estimated 50000 matches similar to: "collection_select default"

2006 Aug 16
1
how to update a collection_select from another
I have two collection_select in my list.rhtml: <%= collection_select (:region, :id, @regionall, :id, :title,html_options={:onChange => "new Ajax.Updater(''related_provinces'',''/categories/related_provinces/" + "?id=''+this[this.selectedIndex].value, {asynchronous:true, evalScripts:true});"}) %><br> <%= render :partial =>
2006 Nov 04
0
Using collection_select and ajax
(I posted this earlier but it doesn''t appear on the group, so I''m writing it again, If it appears twice, I apologize.) I have a drop-down box that allows the user to select a language. I want to use Ajax to render a filtered list of items based on the language selected. I don''t want the user to press a Submit button nor refresh the page, of course. I''m using
2007 Nov 01
1
Default value for collection_select
Hi all, Can we use collection_select with default selected option. I am implementing countries and its corresponding states dropdown through Ajax and I have used collection_select method to select countries. Now for editing point of view I want the country which is selected earlier should come. Please let me know if someone has any idea about this. Thanks Ruchita Sharma. -- Posted via
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I''m seeing. Hopefully it''s a very simple fix, and I simply can''t see the forest through all the trees! I am attempting to create 2 related drop-down lists in the same form_for, both using
2009 Mar 19
0
How to send multiple values to controller using :with option of collection_select
Hi, Thank u all for replying my previous posts. I have following problem I want to send multiple selected values from collection_select using ":with" option to a controller without submitting the form, i have following code <%= collection_select(:cluster, :CLST_RegionID, regions, :id, :REG_RegionName, {:prompt => "Please Select"},
2006 May 23
0
return value from collection_select
Hi everyone I am trying to get the return value from collection_select helper method. Here is what I did collection_select(''product'', ''product_id'', @products, ''id'', ''name'', {}, {:onchange => remote_function(:url => {:action => :myFunction}, :with => "this[this.selectedIndex].value")}) then in my
2009 Jan 28
3
Apply style in collection_select ?????
Hi to all, i have this snip i want to apply style to this combo but there is no effect help....... <%= collection_select(:customer,:country_id, @countries,:id, :country, html_options={ "style" => "width:110px" },:onchange => ''updateState('''');'',:id =>''country_id'' )%> Thanks, -- Posted via
2006 Jun 09
0
options vs. html options in collection_select
I wanting to add an onchange event handler to collection_select but I''m not sure how. The api gives the signature as collection_select(object, method, collection, value_method, text_method, options = {}, html_options = {}) I''m not sure, however, if I need to place the desired code in "options" or "html_options". I''m sure I could just figure it out
2009 Jan 23
0
:selected option is ignored for collection_select
Is there a workaround for this issue yet? I just wasted a ton of time trying to debug this in an AJAX form. http://rails.lighthouseapp.com/projects/8994/tickets/1037-selected-option-is-ignored-for-collection_select ----------- Reported by YoNoSoyTu | September 12th, 2008 @ 11:07 PM | in 2.3 The :selected option in collection_select is ignored. This patch uses the value of :selected option if
2011 Nov 10
1
Auto populate text_fields based on selected item from another collection_select
Hello people I''m trying to figured this out, but I still can''t do it. I have a rails 3 app, I''m working with invoices and payments. In the form for payments I have a collection_select where I display all the invoices number (extracted from a postgres database), and what I''m trying to do is when i select an invoice autopopulate others text_fields (provider,
2006 Jul 20
0
Getting joined collections on a form
Greetings, I''m looking for suggestions on how to simplify getting customer addresses on a form: I''m jumping between controller and view several times; alternating between rhtml and rjs, in order to display customers and their addresses on an invoicing form. It''s very messy. I have a one to many relationship between Customer and Addresses, each customer has one or more
2006 Jul 21
0
Selecting customers and addresses in a form (was Getting joined collections on a form)
(Sorry if you have received this twice, I''m having trouble sending mail to the rails list) Greetings, I''m looking for suggestions on how to simplify getting customer addresses on a form: I''m jumping between controller and view several times; alternating between rhtml and rjs, in order to display customers and their addresses on an invoicing form. It''s very
2006 Apr 27
3
collection_select to display 2 fields
I''m trying to get a collection_select generated Drop-down box to display two fields from a table (first name & last name); however, I am having trouble concatenating the symbols. It appears as though any code I put in the 5th argument for collection_select is processed prior to executing the collection_select method. The code executes successfully with 1 symbol in the 5th
2010 Aug 30
1
update form text_field on collection_select selection
I have form and a collection_select control. I would like to update form fields (text box) when I select an item from the collection_select box. It''s like selecting template from the collection_select and the template automatically loads to text boxes. Any help? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups
2009 Jan 15
2
collection_select not selecting default value
Hi, I''m trying to create a dropdown using collection_select. However, I cant seem to get it to select the right option by default. In my controller I have a setup like this: @content = Content.new @content.selection_id = 3 @selections = Selection.find(:all) In my view I have: <% form_for :content, @content, :url => { :action => ''create'' } do |f| %>
2006 Jun 02
1
Updating html breaks my interface
I have two select menus on a line. The first updates the second: library: library_select album: album_select So when you pick a library, the album_select is automatically updated to show the relevant choices. This is done using ajax. While the ajax request is loading, I switch the album_select with a loading_select, which is a disabled select menu with only one choice:
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
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select field, such as <%= collection_select("job", "client_id" , @clients, "id", "name") %> with onChange="xxx" Anyone know how to make this work? Thank you, Scott -- Posted via http://www.ruby-forum.com/.
2006 Apr 28
2
Ajax form error handling
Hi, I have a customer add form in which i call form_remote_tag to update a customer list within another div on my page. I need to also, however, allow for proper error checking, and the issue is that the form_remote_tag will only update a single div tag. I have seen a few ways to deal with this, but I want to know what the best way is, while still allowing the model to do all of the
2006 Jun 09
0
Re: Rails Digest, Vol 21, Issue 189
Hello and thanks for emailing B2B Logic. I am out of the office until Monday June 19th. Any emergency problems, comments or concerns should be directed to Ryan Lundie: ryan@b2blogic.net Thanks Randal Santia B2B Logic.net