value

unable to get value from textbox used inside a facebox

Hi, I am using the following code: <div class="example"> <p> <a href="#info" rel="facebox">View Facebox</a> </p> <p> <input id="Button1" type="button" value="button" onclick="Get_Value();"/></p> </div> <div id="info" style="display:none;"> <p><input id="text1" name="text1" type="text" value="abc"/></p> <p> <input id="Bu...

Draggable div - what's the point?

I've seen many implementations of draggable divs in jQuery, .Net Ajax, and plain old javascript. While they are all novel, and solve the problem with varying ease, I've never understood what the point was. What is the value of a draggable div? What use case does a draggable div implement? Are there places where draggable divs improve t...

why is the value of textbox (this value is retrieved from the sessions using php) in html shown in IE

Okay the code is, code in first.php <?PHP session_start(); include("script.php"); ?> <form action="script.php" method=POST> <input type="text" value="<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>" name="firstname"> </form> i have saved the file in php and the "script.php" page has all the c...

Is this code redundant when checking for a value greater than zero?

...

Default Values in XForms Input

I have an XForm that has certain fields that may often be left blank (optional street address). Is there is technique to set a default value for that field, preferably a space (I am running into weird formatting issues with CSS). The html form way of value="" doesn't work, neither does setting a default value in the XML schema. EXAMPLE:...

Changing the value in a map in Groovy

This is about a very basic program I'm writing in Groovy. I have defined a map inside a method: def addItem() { print("Enter the item name: ") def itemName = reader.readLine() print("Enter price : ") def price = reader.readLine() print("Enter barcode : ") def barcode = reader.readLine() data[itemName] =...

How to name a method that has an out parameter?

Hi, What is the common preference to name a method that has an out parameter inside? Usually I use Get as a prefix to mention that the method returns a value (like GetMyBusiness). But what if there is an out parameter that will be set after the method call? Should the method name mention this and focus only the return value? thanks...

css columns shrinking 100% pixel value

Hi, I have a page which is divided up into 3 divs, left center and right. I don't want to display anything in the left and right, they just frame the page. #leftDiv { background-color: Gray; width: 10%; left: 0px; top: 0px; position: absolute; height: 100%; } #rightDiv { background-color: Gray; h...

merge similar data together

i am trying to merge similar data together but choosen data. for example the table has 5 rows and i want 3 rows which have similar data to merge. other 2 rows, even though it contains similar data, i dont want it to merge. is there a way to do this? here is my current code: protected void DataBoundModuleGV(object sender, Even...

Help me understand this pointer vs. value issue

I know this is a dumb question, but its really bugging me. Take the following: public <TParseable> LinkedList<TParseable> readAllParseable( Parseable<TParseable> parseable, boolean close) throws IOException { LinkedList<TParseable> list = new LinkedList<TParseable>(); byte[] delim = parseable.getDelimiterValue(); ...

how to get the RGB value of a pixel inside the Form workspace.

im creating a macro and need to check some pixels to make sure the mouse clicks the right spot. How wold you go about checking the RGB value of pixels in c#? ...

Crystal Reports: How do I allow "set to null" when prompting for values to pass to subreports?

I have created a report which links into subreports. I created parameter fields to feed into the parameters of the subreports using subreport links. If I do not add a subreport link and therefore the subreport is prompting for the value directly it will allow the set to null option. However if the enter value prompt is being generated ...

How to make a list of unique items from a column w/ repeats in PHP SQL

Say I have a table that has a column which goes Column B apple apple apple orange apple orange orange grapes grapes mango mango orange And I want to query it in such a way that I get a list like so apple orange grapes mango How do I do this in PHP SQL? Much thanks. ...

How to get a jqGrid cell value

How to get a jqGrid cell value when in-line editing (getcell and getRowData returns the cell content and not the actuall value of the input element). ...

Set Limit For Value, iPhone

Hello all, I have the following code: float valueCalculated = (val1 / val2) * 100; What I want to be able to do is to cap the maximum value of valueCalculated to 100. I believe I could do this using some sort of if statement, but this would mean many more lines of code. Edit// This is not the case, see the answers below. Thanks, ...

Importing excel data to xml with one column having different values?

Hi, I am trying to convert my data to XML using Excel. However for one of the column: lcd_size, I have multiple value for it. How do I get it to display in the following way below? ...

values of diff keys to concatenate from a resource file, how?

I want to concatenate the values of two or more keys from a resource file, while assigning value to a control, somthing like <%$ Resources:LocalizedText, LeadTitle%>" but, getting an error.Is it possible some way to concatenate the value of different keys from a resource file? ...

Textbox Wrong Value

Hello, I have an asp.net page with a datalist with few textboxes, and a submit button. when i cahnge the text in the textbox, and click submit, the value i get in the vb code is the old value and not the one i just entered. Any idea? thanks ...

JavaScript Help

I am completely stuck on how to finish this problem... the question goes... Write a function quality Points that inputs a student’s average and returns 4 if the stu¬dent's average is 90–100, 3 if the average is 80–89, 2 if the average is 70–79, 1 if the average is 60–69 and 0 if the average is lower than 60. Incorporate the function int...

Getting URL hash location, and using it in jQuery

Heya guys. I'd like to get the value after a hash in the URL of the current page and then be able to apply this in a new function... eg. The URL could be www.example.com/index.html#foo And I would like to use this in conjunction with the following piece of code $('ul#foo:first').show(); I'm kinda assuming/hoping there is some...