checkbox

Changing the appearance of a custom android checkbox without the image scaling?

I have a custom checkbox with these attributes: android:id="@+id/map_toolbar_details" android:layout_width="80px" android:layout_height="106px" android:scaleType="center" macro:selectedResource="@drawable/map_toolbar_details_selected" android:button="@drawable/map_toolbar_details" When I load it up, the image gets stretched, even tho...

Django Multiple Choice Field / Checkbox Select Multiple

I have a Django application and want to display multiple choice checkboxes in a user's profile. They will then be able to select multiple items. This is a simplified version of my models.py: from profiles.choices import SAMPLE_CHOICES class Profile(models.Model): user = models.ForeignKey(User, unique=True, verbose_name_('user')) ...

Updating Checked Checkboxes using CodeIgniter + MySQL

Hello I have about 8 check boxes that are being generated dynamically from my database. This is the code in my controller //Start Get Processes Query $this->db->select('*'); $this->db->from('projects_processes'); $this->db->where('process_enabled', '1'); $data['getprocesses'] = $this->db->get(); //End Get Processes...

Problem with checkboxes, sql select statements & php

I am trying to display some rows from a database table based on choices submitted by the user. Here is my form code <form action="choice.php" method="POST" > <input type="checkbox" name="variable[]" value="Apple">Apple <input type="checkbox" name="variable[]" value="Banana">Banana <input type="checkbox" name="variable[]" value...

jqGrid tableToGrid "options" parameter

Basics Hi all, I have see the tableToGrid method (by Peter Romianowski) defined as tableToGrid(selector, options) on the jqGrid wiki, but cannot find anywhere that has documentation of the options Does anyone know about these or where to find them? EDIT: Thanks Oleg, resolved! More What Im actually trying to do is encase the resultin...

jQuery add border to table.

Hi, I'm a jQuery noob, I tried this: <input value="1" type="checkbox" name="mytable" id="checkbox2" style="float:left;" /> {literal} <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(function() { //checkbox $(".mytable").click(function(){ $(".myta...

Checkbox checker JavaScript does not work. Escape?

Hello! In my form, my checkbox elements' name are onSite[]. I've made a simple JavaScript to check them with one click. function checkAll(field) { for (i = 0; i < field.length; i++) field[i].checked = true ; } And in the HTML a button which calls the function. <input type="button" name="CheckAll" value="All" onClick="checkAll(d...

How to disable a checkbox based on date using php?

I have iterated a table based on my query result... I have a column lastDate it contains a date value like 01/24/2010... Now i have to check the date value with the current date if currentdate is less than or equal to lastDate i have to enable the checkbox else disable it..... Any suggestion how it can be done in php... Here is my code ...

Treeview with checkBox in windows application

Hi i m novice to .net How do i display node's name when i check the corresponding checkbox in treeview.. becasue i want store the cheked node's name in database.. Plz help me ...

Android ListView with Checkbox: automatically unchecks

Hi, I've got a ListView with a custom BaseAdapter. The list items contain CheckBoxes that need to represent a property from a database. I use CheckBox.setOnCheckedChangeListener with a new OnCheckedChangeListener to detect changes, so I can change the database based on the current state of the CheckBox. Pretty straightforward stuff so ...

Retrieve checkbox values in viewmodel

This question has been asked many times but none that I really understand. I have a checkbox list in a generated table. I want to submit the form and retrieve the checkbox values and capture the checked boxes. In the view: <% foreach (var item in Model.Results) { %> <%= Html.CheckBox("select...

Javascript checkbox state change

Hi all This is going to be straight forward for anyone who understands this language. I have a set of checkboxes, which I am successfully detecting via Javascript on window load. I now need to detect any change in these checkboxes (ie checked/unchecked) and call in a function to do something else. However using this snippet causes the...

How do I make a checkbox in jQuery lock a existing sliding window from moving and then unlock it by unchecking the box?

I`m very new to jQuery but am starting to get the hang of it. My Question is: How do I make a checkbox in jQuery lock a existing sliding window function from moving and then unlock it by unchecking the box? So basically enable/disable a existing function in my project called - #navigate Any help would be greatly appreciated! ...

can jsTree use radio check

i know there is a plugin for jsTree named jquery.tree.checkbox.js. that make the tree node multi checkable. i just wondered if there is a plugin to raido check the tree node? or how can i modify jquery.tree.checkbox.js to achieve that? ...

How can I check a radio button on load, based on it's value?

I've got the value of a radio button (r1) and I'm trying to use: $("input:radio[val=r1]").attr('checked', true); to check it. The thing is that I've got three radio buttons in a div, when I check one, the value of the checked button gets stored. When I reload the page I want the page to check the radio button that was chosen last...

Checkbox 'off' value

Does anyone have a no JavaScript way to make HTML checkbox still submit a value? As in if you check it the form submission will include a value A but if it is uncheck it still contains a value B? While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal. ...

How to detect checkbox state in Javascript IE7

I have a simple checkbox on my website. Everytime you check and uncheck it, it shows an alert as to what the state is. This works flawlessly in FF, Chrome, and IE8. However, when I run this in IE7, no matter if the check is on or off, it always alerts "off". It's like IE7 can't detect that the checkbox is checked. Does anyone have a...

checkboxes with datasource

I have got 3 textboxes in a detailsview for one datasource field (low,med,high) and i need to insert into that feild either 1,2,3 for whichever checkbox they select. The details must be inserted when the Insert button is clicked. ...

WPF - Extend ListView with checkable AND selectable ListViewItems

Hi there. I already read many examples on extending ListViews with checkboxes bound with IsSelected. But I want something more. I want a seperation between the checked and selected state, so i get a ListBox that has a single selected item, but can have multiple checked items. Unfortunately ListViewItem does not have a property for check...

WPF Listbox with checkboxes appearing blank, added dynamically

I'm trying to populate a listbox with a series checkbox entries, however once running the code below the listbox has blank entries in it, which are selectable, i.e. a blue bar appears. However neither the text or checkbox appears. for (int num = 1; num <= 10; num++) { CheckBox checkBox = new CheckBox(); checkBox.Text = "sheet" + ...