Displaying 20 results from an estimated 3000 matches similar to: "Checkbox array and Ajax.updater"
2008 Sep 15
2
Passing an array into controller
I am trying to pass and array from an AJAX Javascript function to a
controller. The parameter is being read as a single string and not an
array.
The Javascript function:
function sendtolist(formName){
var form = $(formName)
var checked = []
checked = form.getInputs("checkbox","plans[]").findAll(function(item)
{ return item.checked; }).pluck("value");
2006 Jun 20
4
Prototype Array bug??
function CreateTOC(){
var $aTOC = document.getElementsByClassName(''tocitem'');
var $temp = '''';
if(isArray($aTOC)){
for($t in $aTOC){
$temp += ''t='' + $t + '', '' + $aTOC[$t].name +
''<BR>'';
}
$(''test1'').innerHTML = $temp;
}
}
When I run this code
2007 Sep 18
4
Prototype.js and Multidimensional Arrays
Hi there,
this code works only fine , if i dont embedding the prototype.js in my
document:
<script type="text/javascript">
var myCheckBox2 = new Array();
myCheckBox2[''Ort''] = new Array("hamburg","berlin","hannover");
myCheckBox2[''Art''] = new Array("programmierung","support");
2005 Dec 21
3
Checkbox readonly
I declare some checkboxes :
<%= check_box_tag ''offers[]'', offer.id ,
@params[:offers].include?(offer.id.to_s) ,:readonly=>true %>
the result is :
<input checked="checked" id="offers[]" name="offers[]"
readonly="readonly" type="checkbox" value="1" />
But readonly doesn''t work ???
--
Posted
2009 Jun 28
1
CheckBox and Ruby on Rails
I have two questions:
1. I have a checkbox on a form and after submit I need to check the
status of the checkbox. Any idea how to see what the checkbox is set
to? I am assuming this must be done in the controller or model but
cannot figure it out.
2. On load I am checking for a cookie and need to determine if the
checkbox should be checked or unchecked. Is there a way for me to do
this from
2006 May 11
3
multiple checkbox values, convert to string, 1 db field
Basically what I''m trying to do is create a way for users to enter
"keywords" that will then be searchable. I.e., when a user creates a
new Item, there is also a keywords field in the database that is a
string like "purple triangle free" -- but all the user sees when they
are creating the keywords is a series of checkboxes like:
__blue
__red
__purple
__circle
2006 May 31
2
Checkbox Help
Hi guys,
I am need to help again. Sorry for the newbie query but would definitely
appreciate the help.
Here''s the q: I generate a list of items from the database and render
them out with a checkbox beside them. A user may click more than one
item and I would want to save all checked items into another table. I
have been able to give each checkbox a unique id . Would anyone be able
2006 Jun 02
2
Group checkbox toggling
This isn''t really a scriptaculous question, but it might be interesting
anyway.
I''m generating a rails app and in one form I have a grid of check-boxes
(rows = A..H and col=1..12).
I would like to put a checkbox in the column/row headers to toggle the
boxes in a particular row or column. Each box has a name like
''position_A1'' or
2006 May 13
5
Ajax Checkbox using Rails
Hi,
I''m trying to have a checkbox, that when clickes sends an update to the
server and in turn modify the UI with feedback on the success of the
operation.
The main difficulty I''m encountering is that I can''t pass the checkbox
value if I use the standard PrototypeHelpers.
I''m using remote_function to build the function call, but it doesn''t
allow
2007 Feb 15
1
How to select randomly named checkbox
I am trying to select a checkbox that is randomly named depending on the ID assigned to it by the webpage.
[9713816764515361h] is the random bit.
#<WWW::Mechanize::CheckBox:0x7a2b3c0
@checked=false,
@name="communityContentFields[9713816764515361h].postToArea_checkbox",
@value="true">
What code should I use to check the box?
Thanks
Chris
2009 Apr 18
3
Create CheckBox
Hai,
I want to create a checkbox the values are table field values. In my
controller
@emptypes = Emptypes.find(:all)
In View
<% @emptypes.each do |c| %>
#Write checkbox generating code here
<%= check_box("contacts",emptypes.types)%>
<%end%>
Anyknows please suggest me how to create a checkbox (values are
retrived from table).
-with Thanking&Regards
2018 Jun 18
2
Reintroduce "allocate entire disk" checkbox on virt-manager
Hi list,
on older virt-manager versions (ie: what shipped with RHEL 6), a
checkbox called "allocate entire disk" was selectable when configuring a
new virtual machine. When checked, it means that the RAW disk image file
was entirely allocated, generally issuing a fallocate() call. When
unchecked, the disk image was a sparse file, with on-demand space
allocation.
On new virt-manager
2018 Jun 19
3
Re: Reintroduce "allocate entire disk" checkbox on virt-manager
Il 19-06-2018 22:16 Cole Robinson ha scritto:
> Sorry, I misunderstood. You can still achieve what you want but it's
> more clicks: new vm, manage storage, add volume, and select raw volume
> with whatever capacity you want but with 0 allocation.
Sure, but the automatic disk creation is very handy and much less error
prone.
As it is now, if using a fallocate-less filesystem (eg:
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
2006 Feb 25
1
checkbox helper question
I used scaffolding, then modified. As an after thought I added a
"boolean" checkbox to my database, form with this tag
<p>
<%= check_box ''is_hot_item'', @photo.is_hot_item %>
<label for="is_hot_item">hot item?</label><br>
</p>
I check it and save. But I don''t get 1 saved in my database field.
:(
I have just the
2006 Jun 12
2
Validating a non-object attribute in a form via checkbox?
Hi there
A user can place an ad with various attributes via a form; however, I
want the user to check a box signifying that they''ve read the terms
and conditions for use of the site.
So the ''terms'' is not an attribute of the Advertisement model. I
could check that the user has ticked the box in my controller but
would like to bundle this up with the validation
2011 Sep 25
4
checkbox use question
Hi,
how can I use checkbox in a form to show all customers from table
customers,
Course Users Customers
========= ========= =============
user_id customer_id Customer_name
I would like to select customers from the checkbox list, then add to the
course table only users of the selected customers.
thanks dani
--
Posted via http://www.ruby-forum.com/.
--
You received
2011 Aug 26
2
Observer for checkbox
Hi!
I want to put a checkbox on my data list in index view, and change his value
on database when I change the value of this chekbox.
Someone know how is the good way for do it?
Thanks!
--
*Fernando Aureliano*
--
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
2010 Nov 23
5
ActiveRecord not getting true value from checkbox
I have a checkbox tag as follows:
<%= f.check_box :receive_offers %>
When I view source in the html, I see the value of the checkbox is "1",
with the normal hidden field value of "0". However, after posting the
form and saving to the database, the Mysql column, which is a TinyInt,
is ALWAYS 0.
I''ve tried it with true/false values instead, and no luck.
Any
2018 Jun 19
2
Re: Reintroduce "allocate entire disk" checkbox on virt-manager
Il 19-06-2018 20:14 Cole Robinson ha scritto:
> If you change the disk image format from qcow2 to raw in
> Edit->Preferences, then new disk images are set to fully allocated raw.
> Check the image details with 'qemu-img info $filename' to confirm. So I
> think by default we are doing what you want?
>
> - Cole
Er, the point is that I would really like to have a