search for: selectboxes

Displaying 18 results from an estimated 18 matches for "selectboxes".

2006 Aug 08
2
Javascript - multiple select selectboxes
I am trying to populate a multiple select box using javascript, but am having problems with the name. When I change the name to "codes[]" I can''t get the javascript to find the form element, but without the [] on the end, rails wont read all of the selected values. Here is an example of the javascript working, but when you submit the array is not passed across for the codes.
2011 Mar 31
6
Parse selectbox value with javascript
Hey guys, i''ve the following question: how can i parse the value of a selectbox within a div-tag (with the id "ma") via AJAX and use the parsed value for reading out some data from my database. the parsing request should be started by selecting another selectbox. My mainquestion is: how can i parse a selectbox (if possible with rjs) an get the value in ruby (not just in
2006 Jul 28
1
Selectbox: display value for :include_blank => true?
Hi all Is there a way to set a display value for :include_blank => true? Because an empty <option></option> tag is not valid XHTML 1.1 code according to Firefox''s Tidy... Thanks for info. :-) Joshua -- Posted via http://www.ruby-forum.com/.
2006 May 05
1
Date calender instead of selectboxes like in Django
Hi, please have a look at http://www2.jeffcroft.com/2006/may/02/django-non-programmers/ especially the screenshot in the middle with the Calender. Instead of 3 selectfields with day, month, year I find this one much more userfriendly, also having yesterday, today and tomorrow. Are there plugins for this? I know http://www.dynarch.com/projects/calendar/ which I often included in my php-sites, and
2006 May 30
4
Selectboxes and Rails
Hey was wondering how to setup a select box that when I call Model.new(params[:model]) it will automatically putit into the db... I tried <select name="home_bedrooms" id="home_bedrooms"> <option value="0">0</option> ... </select> then when I do @home = Home.new(params[:home]) that field doesnt insert into the db.. any ideas? -Ray
2007 Nov 11
3
Scrollable selectbox for auto complete
Hi everyone, I have used used scriptalicious for the autocomplete. It works but with one problem. When scrolling down the list, the values not visible are not scrolled into focus. eg I use the keyboard down or up key. Here is my CSS <style type="text/css"> div.auto_complete { height: 100px; width: 350px; background:
2006 Jul 04
1
Select Box problem in the controler with Ajax
Hi, I have a selectbox that updates a given span area when a user selects a value. The selectbox has the option :include_blank => true. The controler will fetch the ID of the selected option in the combo box and sends the description of the item with the same ID. The problem is that the user is able to select the empty option, and the controler will not be able to fecth the ID. This
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
...= "<%= rnic.mac %>"; - jnic.ip = "<%= rnic.ip_address %>"; - jnic.static_ip = <%= rnic.network.boot_type.proto == 'static' %>; - jnic.selected = false; - nics.push(jnic); - <% } %> - - // adds unselected network back to selectboxes indicated by selector - function add_unselected_network(selector, network_id){ - for(j = 0; j < nics.length; ++j){ - if(nics[j].network_id == network_id){ - nics[j].selected = false; - $(selector).append('<option value="' + nics[j].n...
2008 Jul 07
1
link_to_remote multiple :with =>
i have a link to remote and i need to pass two values provided by select boxes to it, a language, and a page count (hits per page to be paginated) how do i get the code below to send both arguments?? <%= link_to_remote "#{element}", :update => "a_z_replace", :loading => "Element.show(''a_z_indicator'')", :loaded =>
2007 Mar 26
1
Handling Multiple Select Lists
Hi All, After much searching and head scratching I post you this! I can''t seem to find a generic way to handle multiple select data. The function I use to receive form values will only pass the first selected value from a multiple select. I have pasted part of the form and the function below. Thanks for any pointers, Vince // Example selectbox <select
2006 Jun 14
4
Select box onchange problem
Hi, i''ve got the following problem. I have a check_box witch shows a list of varieties. Now i want to call a action when the user changes his selection. (the method to be called, will store the selection from the user). This is my code: <%= select(''variety'', ''variety_id'', Variety.find_all.collect {|c| [c.description, c.id]},
2006 Jun 20
0
Parameter value in RJS call
Hello, I have a selectbox form with an action being called on the onchange event. How do I get the value chosen in the select sent to the action called? - Jens -- Posted via http://www.ruby-forum.com/.
2007 Oct 18
0
A strange error with javascript and safari
Hi there. I have attached my file, containing the javascript, that does work in FF but not in Safari. The problem is, that the selectbox is not filled in Safari, as it should be. Is there a special way to do it for Saf? - Emil Attachments: http://www.ruby-forum.com/attachment/697/wordsList.rhtml -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2009 Jan 05
0
sending a form helper data into database
hi guys i have one model with some attributes in that like{x,y,z....} and i want two form helpers they are selectbox and text_field for one database field.whenever user tries to select any item in the select box or he can define it in the text_field.so that the details should update to the particular database field. how? --~--~---------~--~----~------------~-------~--~----~ You received this
2013 Sep 19
0
CRUD model in a bootstrap modal with jquery, ajax - best practice
Hi, i have an model, which i want to show edit and update in a dialog via ajax. What i do at the moment: To open the Modal and render the partial, i send an ajax request to controller#show with ujs this is the link: <a class="person-dialog" data-remote="true" data-type="script" href="/en/people/32" onclick="return false">Fidel
2012 Oct 12
3
CheckBox with Value and Drop down menu
I am a newbie in Ruby. I would to ask from all the experts in Ruby on how to create a checkbox with value as well as a dropdown menu. I want it like this site http://www.celiac.com/glutenfreemall/advanced_search.php. Their search form is good and I want to learn every aspect in doing it. Hope you can give me a step-by-step tutorial in doing it. Thanks in advance. -- Posted via
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...ic.mac = "<%= rnic.mac %>"; + jnic.ip = "<%= rnic.ip_address %>"; + jnic.static_ip = <%= rnic.network.boot_type.proto == 'static' %>; + jnic.selected = false; + nics.push(jnic); + <% } %> + + // adds unselected network back to selectboxes indicated by selector + function add_unselected_network(selector, network_id){ + for(j = 0; j < nics.length; ++j){ + if(nics[j].network_id == network_id){ + nics[j].selected = false; + $(selector).append('<option value="' + nics[j].networ...
2009 Oct 06
0
[PATCH server] new host networking wui
...r should be the select box changed event + function on_nics_select_box_changed(e){ + // parse device out of row + device = find_device($(e.target).parent().parent().parent()[0].id); + if(device != null){ + device.nics = []; + } + + // hide selected attributes in all other selectboxes + $(e.target).children('option:selected').each(function(i){ + $('.host_network_table_select_nics:not(#host_network_table_select_nics_'+ + device.type+'_'+device.id+') option[@value='+this.value+']').hide(); + device.nics.push(t...