search for: multiselect

Displaying 20 results from an estimated 26 matches for "multiselect".

2006 Jan 13
2
Select multiple question
I''ve got the following code in my view: <select name="user[member_list][]" multiple="multiple"> <%= options_from_collection_for_select @someUsers, "id", "username" %> </select> I have a few other fields, textboxes, etc. within the form. When I go to save the info, the textboxes all save with their content, but the select box
2006 May 28
0
Best way to validate these dropdowns/multiselect options
...ue and another for the verbose description. I am getting the editing/creation stuff working fine. The dropdowns work with a belongs_to/has_many relationship, while the multi-selects work on a habtm/habtm relationship. However, I now want to validate these selected options in the dropdowns and multiselects (in a way akin to standard model validations so that the new/edit page reloads with the submitted data and error messages). By validating these I mean that each option will be checked to see if that option actually exists in the database or else it will not save the record. Obviously want to p...
2008 Nov 14
0
Variation on my Mechanize MultiSelect Question
...Has anyone had success submitting forms that have a multi select drop down boxes? I have worked on this for 3 days and have not found the solution and today I found a post that seemed to suggest that I need to do this in an alternative way. http://wiki.m001.net/technical/show/HowtoPostWithMultiselectList, but I really see this as cumbersome and less than ideal. I can already see problems sending the parameters as opposed to submitting the form. I sent an email to the group earlier this week so I won''t repeat the code that I was using unless someone would like to see it, but though...
2005 Aug 07
11
HABTM Movable Select Box
Hi, I found it a while ago, an add-on to Rails for supporting movable select boxes, but I searched through the wiki and the mailing list and couldnt find what I was looking for. I was hoping someone might know of or remember something about the project. Thanks, Dylan.
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %>
2017 Jul 10
7
[PATCH 0/5] various improvements for make-template.mk
Hi, this series improves the generation of Debian templates, automating basically almost all the steps needed. Also, it fixes the generation of aarch64 images with NVRAM, which is currently removed too soon, and thus not saved and compressed. Thanks, Pino Toscano (5): builder: templates: update Debian preseed from Stretch builder: templates: generalize debian location builder: templates:
2006 Oct 18
1
optgroup and Javascript Issues
Is there a way to walk a select box that has multiple enabled and a few optgroup mixed in with other groups? The following seems to work without the optgroup tags in a multiselect list box. I have tired going threw the children of the optgroup but i was unable to pull a valid .value or .selected. Any Ideas? Thanks. var objGroups = document.getElementById(''groups'').childNodes; var aSelectedGroups = new Array(); for (var i = 0; i < objGroups.length; i...
2012 Jan 05
6
assest pipeline how to exclude some css files?
....css * *= require_self *= require_tree ./internet */ and applicatiion_intranet.css /* * application-intranet.css * *= require_self *= require_tree ./intranet */ to include only the css under the two directories. application.css is: *= require_self *= require colorbox *= require jquery.multiselect *= require superfish *= require_directory . */ What can I do if I want to exclude the files under internet and intranet directories? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonr...
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with Prototype? Thanks, mark
2006 May 01
0
Passing an Array to a hidden field
...st and most user friendly is to show the user a text field to input the name of the member. This field has auto complete on it. When they submit the member is added to an array in the controller until the whole form is complete (it is possible for 10,000 members to be available and having a multiselect box is not pretty that big). The adding of members to the group happens at group creation. Currently I am converting the array to a string seperated by commas and than taking that string once submitted and parsing it into an array. It works however I am not happy with the solution as it seem...
2005 Nov 22
3
non model select_tag problem
What am I doing wrong here: select_tag(''website_ids[]'', options_from_collection_for_select(Website.find_all, ''id'', ''name'', params[:website_ids]), {:multiple => true, :size => 5}) It works fine except that it does not display the selected options once the form is submitted (it submits to the same page). The
2011 Jan 08
9
options_for_select.
Even reading the documentation I can not figure out what is the select_tag difference between this: <% = select_tag (bags [], "options_for_select (bags.collect @ {| bb | [bb.bag_type, bb.id]}, ruser.bags.collect @ {| ub | ub.id}), {: multiple => true,: id => "bags"})%> and this: <% = select_tag "bags [], " options_for_select (bags.collect @ {| bb
2006 Dec 24
0
[800] trunk/wxruby2/doc/textile/treectrl.txtl: TreeCtrl#traverse has moved to wx sugar
...uot;> * "TreeCtrl#unselect_item":#TreeCtrl_unselectitem </span><span class="lines">@@ -982,18 +981,6 @@ </span><span class="cx"> Toggles the given item between selected and unselected states. For </span><span class="cx"> multiselection controls only. </span><span class="cx"> </span><del>-h3(#TreeCtrl_traverse). TreeCtrl#traverse - - *toggle_item_selection*(%(arg-type)TreeItemId% start_item = root_id) { &#124; item_id &#124; ... } - -Recurses over the treectrl''s items, passin...
2013 Nov 25
6
[PATCH/RFC OSSTEST] Debian PV netboot guest test
...-i partman-partitioning/confirm_write_new_label boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean true +d-i partman/confirm_nooverwrite boolean true + +d-i grub-installer/only_debian boolean true + +tasksel tasksel/first multiselect standard + +d-i pkgsel/include string openssh-server, ntp, ntpdate + +d-i finish-install/reboot_in_progress note + + +END +#$xopts{ExtraPreseed} + + my $authkeys= authorized_keys(); + + my $hostkeyfile= "$c{OverlayLocal}/etc/ssh/ssh_host_rsa_key"; + my $host_rsa_key...
2007 Jan 11
2
In-place editor for a whole form?
I want to implement in-place editing for a hierarchical structure where the nodes are not simple text fields, but need to be represented by at least two input elements. The Rails helpers only support in-place editing for a text field, scriptaculous''s controls.js beyond that implements support for an in-place editor containing a select element. I need an editor where I essentially
2006 Jan 25
17
Lookup pattern in Ruby
Hi folks, I''m curious how a lookup with a large group of values would be handled in Rails. For example, I have a (contrived) AnimalType filtering a list of many Animals--more than can be presented comfortably in a dropdown box. Therefore I need to either redirect to another screen to select an animal (returning after the selection is made), or show a dialog--modal or otherwise--to
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the
2006 Dec 05
0
[779] trunk/wxruby2: Added TreeCtrl#traverse method and documentation
...uot;> * "TreeCtrl#unselect_item":#TreeCtrl_unselectitem </span><span class="lines">@@ -981,7 +982,18 @@ </span><span class="cx"> Toggles the given item between selected and unselected states. For </span><span class="cx"> multiselection controls only. </span><span class="cx"> </span><ins>+h3(#TreeCtrl_traverse). TreeCtrl#traverse </ins><span class="cx"> </span><ins>+ *toggle_item_selection*(%(arg-type)TreeItemId% start_item = root_id) { &#124; item_id &a...
2013 Dec 11
29
[PATCH RFC V2 0/6] OSSTest: OVMF test job
RFC v2 of this series This series implements a basic test job for OVMF guest. The test case will install an OVMF guest and try to boot it. It is also possible to derive a debian HVM installation test case from ts-ovmf-debian-install - the only difference should be the BIOS option. I tested running the test script without specifying BIOS, it worked fine. I just didn''t figure out a
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...t;<span class="cx"> </span><span class="cx"> *set_state_image_list*(%(arg-type)ImageList% imageList) </span><span class="lines">@@ -1032,3 +1104,8 @@ </span><span class="cx"> Unselects the given item. This works in multiselection controls only. </span><span class="cx"> </span><span class="cx"> </span><ins>+ + + + + </ins></span></pre></div> <a id="brancheswxruby2wxwidgets_282swigclassesincludewxTreeCtrlh"></a> <div...