search for: selectbox

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

2006 Aug 08
2
Javascript - multiple select selectboxes
...selected values. Here is an example of the javascript working, but when you submit the array is not passed across for the codes. Anyone work with this sort of thing before? <html> <head> <SCRIPT language="JavaScript"> function setOptions(chosen) { var selectBox = document.addCodes.codes; selectBox.options.length = 0; var len = data[chosen].length; for(i=0; i<len; i++) { selectBox.options[selectBox.options.length] = new Option(data[chosen][i], data[chosen][i]); } } data = new Array(); data['...
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 jus...
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...
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
.../////////////////////////////////////////////////// vm networks config - // number of rows which we are currently displaying in net config - var vm_network_config_rows = 0; - - // last row currently being displayed - var vm_network_config_last_row = 0; - - // value of current selectbox - var current_selectbox_value = 0; - - // create list of nics - var nics = new Array(); - <% @nics.each { |rnic| %> - jnic = new Object; - jnic.network_id = "<%= rnic.network_id.to_s %>"; - jnic.name = "<%= rnic.network.name %>"; - j...
2008 Jul 07
1
link_to_remote multiple :with =>
...gt; "Element.show(''a_z_indicator'')", :loaded => "Element.hide(''a_z_indicator'')", :url => {:action => ''a_z_search'', :ltr => "#{element}"}, :with => "''a_z_language=''+$(''selectbox'').value && ''page_count=''+$(''page_count'').value" %>| Rails 2.0.2, both arguments are individually valid expressions and i can get them to do what i want, but i don''t know how to concatenate them into a single expression Thanks,...
2007 Mar 26
1
Handling Multiple Select Lists
...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 name="countryarray[]" multiple="multiple"> <option value="AF">Afghanistan</option> <option value="AL">Albania</option> <option value="GY">Alderney</option> <option value="AS">America...
2006 Jun 14
4
Select box onchange problem
...riety_id" name="variety[variety_id]" onchange="/account/add_to_varietytmp"> Two questions: 1.. I need to give a id to the method ''add_to_varietytmp'', how do I give the correct id from the selected option? 2.. When I select an option in my selectbox, onchange, the method ''add_to_varietytmp'' doesn''t run. So how do I get my onchange to work? Thnx micheldogger -- Posted via http://www.ruby-forum.com/.
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/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you...
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 message because you...
2013 Sep 19
0
CRUD model in a bootstrap modal with jquery, ajax - best practice
...-> $(this).find(''form'').unbind(''ajax:beforeSend'').bind(''ajax:beforeSend'',(evt, xhr, settings) -> ).unbind(''ajax:success'').bind(''ajax:success'',(evt, data, status, xhr) -> #insert Data to selectbox it there comes a type attribute with the request if xhr.status == 201 # :created url = data.url #this is en/people/:id # Load show dialog on success - runs show.js.erb $.ajax({ url: url, type: ''get'', dataType: ''script'...
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
...}); + /////////////////////////////////////////////////// vm networks config + + // number of rows which we are currently displaying in net config + var vm_network_config_rows = 0; + + // last row currently being displayed + var vm_network_config_last_row = 0; + + // value of current selectbox + var current_selectbox_value = 0; + + // create list of nics + var nics = new Array(); + <% @nics.each { |rnic| %> + jnic = new Object; + jnic.network_id = "<%= rnic.network_id.to_s %>"; + jnic.name = "<%= rnic.network.name %>"; + jnic.mac...
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...