Displaying 20 results from an estimated 30000 matches similar to: "Update database on checkbox update"
2006 Jun 27
2
Bug in Firebug or in RJS? Or something else?
I''m getting a really strange result using RJS page.replace_html and wonder if anybody knows anything that could help me figure it out.
I''m rendering a partial in a loop in edit.rhtml that puts a set of <div>s on the page, each <div> containing a checkbox_tag with an associated observe_field and a text_field_tag also with an associated observe_field. When the
2007 Dec 17
6
Checkbox array and Ajax.updater
Hello all,
I have some checkbox array like these:
<input type=checkbox name=list[] value="1">Java<br>
<input type=checkbox name=list[] value="2">JavaScript<br>
<input type=checkbox name=list[] value="3">ASP<br>
<input type=checkbox name=list[] value="4">HTML<br>
<input type=checkbox name=list[]
2006 Jul 31
0
Autosubmitted checkbox
OK - i have this form, and i works perfect :)
<%= form_remote_tag(:update => "status", :url => "/image/worksafe/" +
image.id.to_s) %>
<%= check_box_tag :worksafe, value = "1", checked = image.worksafe%>
<%= submit_tag "Change status", :name => image.sha %>
<%= end_form_tag %>
however - the submit button is kind of annoying,
2014 Mar 14
0
AngularJS options with a simple_form checkbox
Hi guys,
How does one assign ng-model to a checkbox in simple_form? I have tried
adding it like this:
=f.input :super_admin , label: false, checked_value: true, unchecked_value:
false, as: :boolean,:input_html=>{"ng-model"=>"superadmincbx"}
but my ng-hide does not work.
%span{"ng-hide"=>"superadmincbx"}
I'm also using the Batarang
2006 Feb 05
1
Check/uncheck all checkboxes
Hello!
I have this page where I list all users in a table. There is checkbox in
every row. My User-model has a "checked"-attribute.
I have implemented the checkboxes like this:
<%= check_box("user[]", "checked") %>
Which outputs this:
<input id="user_12_checked" name="user[12][checked]" type="checkbox"
value="1"
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
2010 Oct 02
0
Ajax observe_field not vorking on Rails
down vote favorite
I am trying to create some kind of search in my ruby on rails
application and I want to add ajax support. I want when a user types in
a search box a word, ajax automatically generates the results. And I
have searched almost all internet and I couldn''t find answer to
following question:
When I type into my text area nothing happens. It is like ajax is not
working at
2006 Jul 21
4
observe_field submit behavior
I am using observe_field on a number of multi-selects and checkbox form
elements whose values would normally come in as arrays on a normal
(non-Ajax) form post.
I understand that by using the :with => ''name'' I will get name=value in
the request.raw_post however if the field I am submitting has mutliple
values and the name is of the form ''name[]'', I get
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
2008 Dec 19
2
Remember that checkbox has been checked!
Gdday everyone today I come up with this question.
1.I''ve a check box on my page.
2.I checked on this box.
3.I need to click on (link_to) to redirect on this page again.
4.I found that my check box''s uncheck.
How can I pass checked value in to this box?
Thx to all suggestion
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You
2018 Jun 19
0
Re: Reintroduce "allocate entire disk" checkbox on virt-manager
On 06/18/2018 04:05 PM, Gionatan Danti wrote:
> 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
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
2010 Feb 08
1
can use use observe_field with a 3rd party server?
Hi-
I''m trying to implement an auto-complete using Yahoo''s autocomplete
server, which basically suggests search completions:
http://ff.search.yahoo.com/gossip?output=fxjson&command={your
searchterms}''
if you want to see the results in your browser, use xml instead:
http://ff.search.yahoo.com/gossip?output=xml&command={your
searchterms}''
So, I can
2006 Nov 16
3
Scriptaculous 1.6.5 Checkbox problems
I''d report this on the rails trac site but it won''t let me open a new
ticket. I figured this was important enough to bring this up now.
I replaced the prototype version in Scriptaculous 1.6.4 with the
version in 1.6.5 in a rails site I''m working on. I noticed though that
even though I was clicking the checkbox to confirm the acceptance of a
terms of service that I kept
2007 Mar 08
0
passing checkbox value to next page
Hai
I have one search page and am using pagination for navigate through
all the result each page have 10 result .Each search result have one
checkbox ,Now i am selecting some of the checkbox in first page and i am
going to second page and from that page am selecting some of the check
box, Now the Issue is if i am coming back to first page i want to see
the result with checked(which was
2006 Jul 18
1
updating boolean field in model from check box value
hello
i am having a bit of trouble with updating the values of a boolean field
in my database/model given the value returned by a check box
i am generating the check box as follows:
check_box("user", "enabled")
which produces
<input checked="checked" id="user_enabled" name="user[enabled]"
type="checkbox" value="1"
2006 Jul 17
6
DRY? Converting Boolean to Yes/No
I have a database column given as:
t.column :change_address, :boolean
The user interacts with this using a checkbox, but wants confirmations to
read:
Change address: Yes
In an isolated case something like:
@obj.change_address ? ''Yes'' : ''No''
Would work fine but this is peppered throughout scads of forms and boolean
fields. The first step I took at DRYing
2006 Jul 17
3
Best practices - field initialization based on display rules
All,
I have a form with the following field interaction rules.
Given checkbox A,
text field B
text field C
If checkbox A is checked then make text field C equal to the value of
text field B and disable field C.
If checkbox A is unchecked then enable field C.
In order to display a form where I''m manipulating an already existing
object, I have something like this in my RHTML template
2008 Feb 28
1
Inheritable Permissions Issue
I have a Centos 3 server running Samba 3.0.28. It's a member of an AD
domain on a Windows Server 2003 R2 Standard x64 SP2 box. From the
W2K3 server I can see the samba share I created. Using the Security
tab in the Windows Explorer file properties dialog I can add and
remove users and change their permissions. However, in the
Permissions tab of the Advanced Security Settings dialog,
2006 Apr 24
0
observe_field inside of a form?
Hi I''ve just started experimenting with AJAX in Rails and have come
across this issue.
I''m trying to set up some ajax form validation on a login form. I set
up an observe_field method for the username field but the action for
the containing form is being called and rendered instead of the
action I specify in the observe_field method.
All of the observe_field examples