value

jQuery find and replace text in a variable

Hello, I have a variable like var theUrl = 'http://www.google.com/?q=%s'; then i have a input box like <input type="text" id="searchBox" value="" /> and a button like <input type="button" id="searchButton" value="Search" /> when the button is clicked, i should get a alert where the %s of the var theUrl should be replaced with t...

RadioButtonList on ASP.NET (VB)

Hey, I have a RadioButtonList wich contain 4 radio buttons A,B,C,D RBQ.Items.Add("A") RBQ.Items.Add("B") RBQ.Items.Add("C") RBQ.Items.Add("D") How can set the selected value to the radio button who has the value "B" ???? Thanks. ...

this class is not key value coding-compliant for the key

Hi, After having spent hours trying to solve a little problem of mine, I come to you for an ultimate try to fix it. I'm trying to link a UILabel with an IBOulet created in my class. That's something so basic you ask yourself why I need help ? Everytime I build my application, it crashes on the label screen saying "this class is not ke...

PostgreSQL: dynamic row values (?)

Oh helloes! I have two tables, first one (let's call it NameTable) is preset with a set of values (id, name) and the second one (ListTable) is empty but with same columns. The question is: How can I insert into ListTable a value that comes from NameTable? So that if I change one name in the NameTable then automagically the values in List...

passing checkbox and textbox values from a view form to a controller action

Hello, I have a view with a form..this form has a textbox and a checkbox in it. i also have a submit button in the form which points to an action in a controller. my question is..how can i pass the values in the textboxes and the checked state of the checkboxes to the controller action? the textboxes and checkboxes are not tied to a ...

Reading value of textbox inside a qtip not working in jQuery

I am loading a jQuery qtip on hover (as it usually works). Inside this qtip, there is a textbox and a button. On the click of this button, I want to do something with the value of this textbox. Somehow, jQuery's .val() function returns me the initial value of the textbox. Where am I going wrong? jQuery code: $(function() { $("#some...

DrawingVisual DependencyProperty not Inheriting from Parent

I have a class that inherits from DrawingVisual. It declares a DependencyProperty which, when registered, should inherit its value from a parent. I then create a parent-child relationship between two instances of this class. I set the parent DependencyProperty but the child's DependencyProperty does not return the parent's value. Can...

Why am I getting "undefined" with jquery.val()?

Goal: read in the current value of a set of text boxes. if the value is "None" replace the value with the value provided. Once a value is changed stop. When I use span and .text() instead of a textbox and .val() everything works. However, the textboxes are part of a form. Any idea why it would return as "undefined"? (basically i'm ma...

Input value problem when to fast typing

$("#input").keyup(function(){ console.log($(this).val()); }) Problem is when one is typing slowly "a" & "b" the above code will result in "a","b" in console log. But when somebody does it quickly the result is "ab","ab". It's easier to do with letters which are near on a keyboard eg. "e"&"r". How to avoid it? Events keydown and keypr...

How to get/detect the active UIImageview in UIScrollview?

Dear all experts, I need to use 3 UIScrollView to Display images with 3 parts, Head, Body and Leg, and before the game start, the UIImageView will be displayed randomly in UIScrollView. User have to scroll them to match it as a Person. I use three Array: headArray, bodyArray and legArray to store the image name; and Then addsubview to...

Access bindingsource column value

How can I update a column value in a binding source with code? I am trying for something similar to this: CustomersBindingSource.AddNew(); CustomersBindingSource.Current["CustomerID"] = Guid.NewGuid(); This code currently errors stating: "Cannot apply indexing with [] to an expression of type 'object'". Any help re-writing this is g...

Java Recursion, calling it with Objects - How To Copy The Objects?

The old value/reference things. Im getting ConcurrentModificationException for this adaptation of the Bron-Kerbosch. public int[] bk(ArrayList<Integer> R, ArrayList<Integer> P, ArrayList<Integer> X) { int count[] = new int[n]; int u=0, c = 0; ArrayList<Integer> tempPX = new ArrayList<Integer>(); ArrayList<Integer> new...

Java pass by value -- can you explain this?

I read this excellent article and it make sense: Java is strictly pass by value; when an object is a parameter, the object's reference is passed by value. However, I'm totally confused as to why the following snippet could possibly work. Foo has a String member variable a which is immutable and needs to be burned in every time. The fi...

Jquery: How to get the value of an input and put in an array

I have an input <input type="text" value="hello" /> and I want to get the value of this and using Jquery, save the value in an array. How can I do this??? ...

Getting text input value when populated by another Javascript function

Hello I have a set of input text boxes that activate a calendar for selecting dates when clicked. This works fine. I now need to get the values entered into these inputs using the onblur event. My problem is that my Javascript isn't detecting the dates entered, but the default value of the input (i.e. garbage). Somehow I need to detec...

is there any kind of unique object that can differentiate smart cards from each other

I need to know if there any kind of unique object that i can use to differentiate between smart cards for example if i have 1000 smart cards and i need to differentiate between them without pre-write any values on them is there any default unique value which is a factory default built-in value like the mac address for the network cards ...

JSON Object Array of Properties

I've been trying to figure out this particular object for quite a while and it's frustrating me endlessly so I was hoping to get it resolved here. I have an object that looks like this: options = { headers: { rows: [ cols = { text: "Blah", span: 12, color: "#FFF" ...

Check for specific errors in MySQL queries with PHP

Hello, Is there a way that I can check for specific errors in MySQL with PHP? For example, I want to run a query that inserts 1000 last names into a database table. I know that I can use mysql_error() to check for errors, but I want to check specifically for a "duplicate value" error. Is there anyway to do that? Thanks! ...

How to edit a binary file's hex value using C#

So here's my issue. I have a binary file that I want to edit. I can use a hex editor to edit it of course, but I need to make a program to edit this particular file. Say that I know a certain hex I want to edit, I know it's address etc. Let's say that it's a 16-bit binary, and the address is 00000000, it's on row 04 and it has a value of...

How to pass asp.net value to javascript function ?

Hello, I have this code <asp:GridView ID="gvCentersList" runat="server" AutoGenerateColumns="False" DataKeyNames="CenterID" DataSourceID="SqlDataSource1" CssClass="gv-classic"> <Columns> <asp:TemplateField HeaderText=""> <ItemTemplate> <asp:CheckBox ID="GridCheckBox" runat="server" onclick="javas...