checkbox

symfony: boolean columns not rendering checkbox widgets as checked

Using Doctrine in symfony 1.4 I have several boolean columns defined (stored as a tinyint in mySQL). The checkbox widgets are always rendering as checked, even when the returned value is '0'. It seems related to this ticket. Is this a common problem? Is there a workaround? I can get it working by changing line 70 in sfWidgetFormInputCh...

Winforms Checkbox : CheckState property Indeterminate renders differently

In C# environment, setting a checkbox's CheckState property to Indeterminate displays a "green square" inside the checkbox. In VB environment, this displays as a "grayed out check" (which is less intuitive, even for "dummy" users). How do i make Indeterminate state look like a "green square" in VB.NET ? Btw, i am using VS2008, Winform...

Javascript: Enable checkboxes list when a checkbox is checked (With Prototype)

Guys, Ive been using jquery to do this, but now I need to do it with Prototype and Im little confused due lack of documentation I have 2 lists of check boxes First List: Check box 1 Check box 2 Second list: Check box x check box y check box z I need the JS code, using prototype to work like this: Second list, remains disabled unl...

How to interact with checkbox actions ? (QTableView with QStandardItemModel)

I'm using QTableView and QStandardItemModel to show some data. For each row, there is a column which has a check Box, this check box is inserted by setItem, the code is as follows: int rowNum; QStandardItemModel *tableModel; QStandardItem* __tmpItem = new QStandardItem(); __tmpItem->setCheckable(true); __tmpItem->setCheckState(Qt::U...

How can I serialize the values of checked checkboxes in an iFrame into a hidden form field on clicking a button?

I have an iFrame like so: <iframe width="100%" frameborder="0" height="470" allowtransparency="true" name="productframe" id="productframe" style="border-bottom:1px solid #eee"></iframe> The iframe contains several line items drawn from a sql server db, and I can check any of the checkboxes I want to perform a task with - in this case ...

Javascript: Dynamic Check box (Fieldset with Father/Child Checkboxes)

I have a problem here, when I select any of the 'father' checkboxes all the child checkboxes are getting enabled or disabled. So I need each father checkbox to affect it own child fieldset. Could someone help me with this. Thank you <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html lang...

The events go out after ajax update

I have writed à checking/unchecking input code that works well in the fisrt loading of the page, but since I add an input via ajax then reload the inputs with the new input, the checking/unchecking event no longer works, I wonder what's the problem. thanks before ...

jquery gwt checkbox

how can i implement jquery expression if($("[name='abc']:checked").length > 1) in GWT?? ...

How to distinguish user vs programmatic changes in WinForms CheckBox?

I have logic on a CheckBox's OnCheckedChanged event that fires on form load as well as when user changes check state. I want the logic to only execute upon user action. Is there a slick way of detecting user vs programmatic change that doesn't rely on setting/checking user variables? ...

Javascript: Change li class if checkbox is selected (on load)

I have this code on javascript side: function changeSelectionStyle(id) { if(document.getElementById(id).className != 'yes'){ document.getElementById(id).className = 'yes'; } else{document.getElementById(id).className = '';} } And this on html: <ul> <li id="selectedAuthorities-4_1li" class=""> <input ...

Javascript: Onload if checkbox is checked, change li class

I have this code on javascript side: function changeSelectionStyle(id) { if(document.getElementById(id).className != 'yes'){ document.getElementById(id).className = 'yes'; } else{document.getElementById(id).className = '';} } And this on html: <ul> <li id="selectedAuthorities-4_1li" class=""> <input type="checkb...

Check if checkboxes are selected on page load and add a class to parent html li

Im looking a way to do it with prototype, this js, needs to loads with the page and interate over all the elements (inputs - checkboxes, in this case) with the given id and assign a class to its parent <li></li> The JS is: function changeSelectionStyle(id) { var inputId = id.substr(0,id.length-2); if(document.getElementById(inputId)...

I'd like to get an explanation for some odd Checkbox binding behaviour in my Winforms App.

Hi All. I'm trying to understand databinding in Winforms apps and have developed a test app with odd behaviour. I have bound the Checked property of the Checkbox control to a single-row, single(bool)-column DataTable object. Checking the box updates the DataTable cell fine as you would expect, however I would also like to change the Che...

CheckBox in asp.net mvc

i have two options One <%= Html.CheckBox("postType", false, new { @id = item.int_PostTypeId.ToString() })%> Second <input type="checkbox" name="postType" value="<%= item.int_PostTypeId.ToString() %> 1st question: what is differenct between these two method of check box declaration. 2nd question: and how can we get value of chec...

Word forms with too many ActiveX checkboxes load slowly.

Hi there, my company's software product has a feature that allows users to generate forms from Word templates. The program auto fills some fields from the SQL database and the user can fill in other data that they desire. So we have a .dotx template that holds the design of the form, and then the user gets the .docx file to fill out whe...

Javascript: addClassName if input is checked and removeClassName if it was un-checked

Im trying to select all the li tags of the document and check if it hasClassName('yes') so if it has, it will remove it. But im having a TypeError: Object [object HTMLLIElement], has no method 'hasClassName' error. This is the DOM method: document.observe("dom:loaded", function() { $(document.body).select('input').each(function(ele...

Question regarding checking the state of a checkbox class

I'll try and make this question simple. Can I assign a class to a series of different checkboxes, and use Jquery to do something when any one of those checkboxes is checked? Searching around on the internet I have found documentation on grabbing the name: $('input[name=foo]').is(':checked') but when I swap out the name attribute for the ...

Javascript: Remove checked status from disabled input (already checked)

Im trying to make this function to check an element and if its checked, or not, add or remove respective className. Also, if the element is disabled but is checked, it should un-check it and remove the className('yes') function init() { $(document.body).select('input').each(function(element) { if (!element.checked) { ...

jQuery: select checkbox when upload field is clicked

I'm working on a CMS. When a user wants to replace an existing thumbnail image, they can upload a replacement, and check a checkbox to certify that they are indeed replacing the image. The checkbox seems necessary because otherwise the form submits a blank value (due to the blank default value of the upload field, a security default for ...

FORM fields checking

Hello all, I have a simple form with several checkboxes. Now I need to prevent users to proceed with this form if more then 3 checkboxes are selected. How should this be done? ...