checkbox

How can I prevent a Checkbox state switch when the user clicks on the text?

Hi, I have a list box with Checkboxes in it. I want to prevent the Checkbox from changing its status if the user clicks on the text next to it. I only want it to change if the small box is clicked directly. Is there any way to do this in windows forms? Greetings and thanks in advance. ...

jQuery Click/Change event not working properly in IE7/8

I am binding an event to a checkbox's change or click event which works fine in Firefox but in IE I have to click anywhere else (causing the blur) event before the event is fired. I have read and believe this is down to the way IE fires the events, but is there anyway I can get round it?! The whole point is that it is a smooth search f...

Modal box + checkbox + cookie

I would like to achieve the following: On homepage load, display modal box Within modal box, display a form with a single mandatory checkbox On checking the checkbox, hit submit and close the modal box, proceed to homepage Remember this checkbox tick preference using a cookie On a users return to the homepage, if they have checked the ...

Problem with IE8 and printing a fillable form

I have created a fillable form (html) on the intranet site at work for training. The form is a short quiz with checkboxes and text for name, date, etc. For now I am just trying to let them fill in and print the form to hand in. In IE7 it works fine, however in IE8 the text prints, but the checks in the checkboxes won't. Anyone have any ...

Can I make WPF RadioButtons look like CheckBoxes?

I want to have the behavior of RadioButtons, but show them as CheckBoxes to the user. Is this easy to do? ...

failing to retrieve multiple checked value from JSP

I'm trying to retrieve mulitple checked value, which are being showed in JSP dynamically, retrieved from inbox folder of the mail server, just like in yahoo, or gmail. But whenever I select multiple checkboxes(or either one), I'm not able to retrieve their values, like subject and username. What should I have to do in JSP to retrieve tho...

Problem of session state

Hello Friends, I'm developing a project in ASP.Net(c#). My project definition is Online Travels Booking System. In my project there is a seating selection module. When I select a particular seat for a particular route using a check box, I create a session for the selected seat so that if I ever choose the same route, the selected seat...

How to check for checked Checkboxes in unbound column in componentone WPF Datagrid?

I use a componentone datagrid for WPF. added a unbound column with a bool. for every checked row, I need to add an ID value to a field, as soon as the checkbox is checked for this row in the grid. ...

jQuery checkbox event not firing?

I have a page with checkboxes, one of which is a select all button. So when the user clicks select all, it checks all the other boxes, and when another box is clicked, it unchecks select all. Here is the code. $(document).ready(function(event){ //alert('wtf'); $('#mailSubscribeAll').click(funct...

Why does my customized WPF RadioButton not look right?

I am replacing the style of a radio button with that of a check box. I know you are going to say that is a bad idea, but it really needs to work this way. Anyway, using Expression Blend I was able to extract the style of the CheckBox and apply it to a RadioButton. My only problem is now that when it draws there is no border. Can anyo...

Returning the value of a new CheckBox in Flex Air

I am trying to save settings to an XML File and setting the relevant data if the check box is checked or not. private static function createXMLData():void { prefsXML = <preferences/>; prefsXML.application.@windowsstart = Application.application.SettingsPage.settingWindowsStart.selected; prefsXML.application.@mintosystray = ...

JQuery tablesorter conflicts with checkall toggle

I am trying to create a table that is sortable using JQuery tablesorter and also with a select all/none checkbox toggle for the individual row checkboxes. Tablesorter is disabling the toggle. On a similar post I read "tablesorter is destroying/recreating the original Dom element" - that said I'm still not sure how to fix it. My code i...

WPF - Binding to CheckBox not working in a HierarchicalDataTemplate

In a WPF treeview I am trying to automatically check the children if the parent node is being checked. I am using a view model for that and a bindable object for the nodes, however all my attempts failed. Here is the code (C# + XAML). Any ideas would be greatly appreciated <Window x:Class="TestCheckBoxBinding.Window1" xmlns="http://sche...

Add Checkbox DataGird Wpf C# Disable problem

I have added checkboxes into a DataGird, but they are not enabling they just disable when i click on another control giving you complete source code. public partial class WinSubnetRangeInput : RibbonWindow { public DataTable objdtIPrange = new DataTable(); public WinSubnetRangeInput() { this.InitializeComponen...

hierarchical winform checkboxes

I've got a sequence of checkboxes on a C# Winform. Each checkbox can have some options on it, which is really just another set of checkboxes that are just indented into the page a bit. What I'm trying to achieve is when you tick one of the parent checkboxes then all it's child checkboxes get ticked. And the opposite when a parent check...

C# - Uncheck a checkbox in webpage through WebBrowser control

Is there a way to uncheck/check a checkbox within a webpage that is loaded within a webbrowser control? Thank you. Update: (This is what I originally tried with no luck) HtmlDocument rememberme = this.webBrowser1.Document; rememberme.GetElementById("remBox").SetAttribute("checked", "false"); ...

jQuery checkbox not checking

I have a form setup so that when you check a checkbox, the relevant UL will expand showing more options based on the choice. It works, but only when the user clicks the label of the checkbox. If the checkbox is clicked, the UL expands as expected, but the box doesn't get checked. Javascript: jQuery(document).ready(function() { ...

C# Checkbox has strange behavior

When a winform first displays, the checkbox is unchecked by default. If when the form first displays, I click on the checkbox to 'check' it, the checkbox appears checked for a split second and then disappears. The checkedchanged event never fires. However, if anytime after the first initial attempt I click on the checkbox, the value c...

How To Set The CheckBoxList Properties?

I have a checkboxList with some 50 values. but I want only 5 to be displayed and navigate others using scroll bar. I tried using <asp:CheckBoxList CheckBoxes="true" Width="250px" Height="120px" RepeatColumns="5" RepeatDirection="Vertical" RepeatLayout="Flow" runat="server" SelectionMode="Multiple" /> ...

How to receive a batch of checkbox data in PHP?

The key code is: while ($row= mysql_fetch_array($result, MYSQL_ASSOC)) { $id=$row[id]; $html=<<<html <tr><td> <input style="float:left" type="checkbox" name="mycheckbox[]" value="$id"> <span style="float:left">$row[content]</span> <span style="color:black;float:right">$row[submitter]</span></td></tr> html; echo $html; } Th...