value

How to remove unchecked check-box values from cookie using jQuery?

I'm trying to write a script where the unchecked values of a set of check-box are removed from a cookie. I am using jQuery's cookie plugin below is my current function which is called when a check-box is called; <script type="text/javascript"> jQuery(document).ready(function($){ $("input[type=checkbox]").each(function () { $(...

Is there any practical use of "Void" structure in .NET

Just of a curiosity, is there any practical use of "Void" struct except in Reflection ? ...

Iterative printing over parallel lists to print columns in Python

I have vsort and vsorta, both lists with equal numbers of items that should be right next to each other (about 250 elements per list). I want to print them as parallel columns, like so: >>> for x,y in vsort,vsorta: ... print x, y ... Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: too many value...

Why doesn't this jQuery code work in IE?

This works in all browsers except IE. I have no idea why. Its just an ajax clock that ticks through the seconds. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/...

CKEditor read contents + set uiColor dynamically

Hello! I want to validate a form where I use CKEditor for one of the inputs. When an input is wrong, I set its border and background to colors of red. Using JavaScript, how can I read the contents of the CKEditor? Also, how can I make the editing textarea red background and red border? Thank you. ...

How do I set a value in CKEditor with Javascript?

document.[form name].[textarea name].value=data; does not work $('#textareaID').val(data); does not work. These work without the editor applied. How can I set the value of the editor using javascript? ...

How can I check check-boxes according to value using jQuery?

How can I check check-boxes (on page load) according to value of check-boxes using jQuery? I have list of values that I have stored within localstorage (Long live HTML5 !!) A sample data would be something_random|something_random2|something_random3 And basically I want to read each value and make sure onload checkboxes that already ha...

Why is the range of bytes -128 to 127 in Java?

OK, this is as noob as it gets, but I still don't get why the lowest value a byte can take is -128. That the highest value is 127 I can understand, because it's 01111111 in binary, but how does one represent -128 with only 8 bit, one of which is used for the sign? Positive 128 would already be 8-bit, i.e. 10000000, and then you need a 9t...

How to get the latest selected value from a checkbox list?

I am currently facing a problem. How to get the latest selected value from a asp.net checkbox list? From looping through the Items of a checkbox list, I can get the highest selected index and its value, but it is not expected that user will select the checkbox sequentially from lower to higher index. So, how to handle that? Is there any ...

check box stops my Jquery script

I my login form if I dont check remember me check box in php script it gives <b>Notice</b>: Undefined index: autologin in error. in my .php file I have $check_autologin = $_POST['autologin']; And I am checking is user checked it if($check_autologin == 1) { $password_hash = $encrypted_mypassword; setcookie ($cookie_na...

C# ASP.NET HttpWebRequest automatically decodes ampersand (&) values from query string?

Assume the following Url: "http://server/application1/TestFile.aspx?Library=Testing&amp;Filename=Documents & Functions + Properties.docx&Save=true" I use HttpUtility.UrlEncode() to encode the value of the Filename parameter and I create the following Url: "http://server/application1/TestFile.aspx?Library=Testing&amp;Filename=Document...

How to copy html with events jQuery

Could you please tell me how to copy events, if I copy some html? I have a function to copy: function add_to_order( row, row_input_value ) { $('#buffer').html( row ).find('td:first').remove(); // add row to buffer and remove the first td element $('#buffer').append('<td class="delete"><span class="remove-from-order button minus...

how to check if the value of a text input is empty right after the keypress event in javascript?

Hi all, Here's the problem, in abstract terms: i have three input fields (A, B, C). two of them need to be text inputs (A and B), the third is of irrelevant type. I need to enable the third if A is not empty and B is not empty. I need to disable C if A is empty or B is empty. The code // empty is the empty function from the phpjs pro...

Sharing a complex object between Python processes?

I have a fairly complex Python object that I need to share between multiple processes. I launch these processes using multiprocessing.Process. When I share an object with multiprocessing.Queue and multiprocessing.Pipe in it, they are shared just fine. But when I try to share an object with other non-multiprocessing-module objects, it see...

how to get values inside an xml column, when it's of type nvarchar.

My question is similar to this one: http://stackoverflow.com/questions/3061804/choose-a-xml-node-in-sql-server-based-on-max-value-of-a-child-element except that my column is NOT of type XML, it's of type nvarchar(max). I want to extract the XML node values from a column that looks like this: <Data> <el1>1234</el1> <el2>Something</el2> ...

jQuery/js val() overwriting PHPs' $_POST['field']. How to fix?

Hi, I've got a pretty complicated (for me!) form validation to do. I did all js and now I'm doing php stuff. The thing is I've put a possibility to copy part of the inputs to other, similar section (recipient -> payer). It's all done by jQuery first copying $("input.payer_sth").val() to $("input.payer_sth"), and then doing it again and...

Set Multiple Variables to Same Value

Hi I have dozens of NSStrimgs that when the app loads I want to all be set to the same set. All of them. How can I do this without typing out every single one? Is there a shortcut method? Thanks. ...

Flash Slider Component With Decimal Value?

how do i set up a Flash CS5 Slider component to trace decimal values, from 0.00 to 10.00 when the slider is dragged? i can't seem to find where i need to set these options to permit decimals. is it possible to set this in ActionScript? ...

How to use a javascript value inside html style property value

Hi, I have created some div(s) on a page. Depending on the browser (or may be any other settings) I want to change the width of these div(s). Now, if I embed style=" blah blah blah...; width:200px" inside div tag, its ok. But I want this 200px to be, say, 220 sometime or 230 or 240 other times. So what I want now to calculate my requir...

php update data from multiple checkboxes

hi, i have a table called horse, i would like to create a form to edit the horse_name and horse_height, but the data cannot be updated, it turns out there is a problem with the update query, when i print the query to show the values, the horse_name value is equal to horse_height <body bgcolor="#009933"> <?php include("connection....