Hey all, using this method http://stackoverflow.com/questions/1501181/jquery-append-and-remove-element i'm adding text inputs to a document. i'm using this php
if($_POST['cp_slider']) { $array=$_POST['cp_slider']; foreach($array as $cp_slider) { if(strlen($cp_slider)>0){ echo '<li><input type="text" name="cp_slider[]" value="'.$this->op...
I am trying to make C# launch an application (in this case open office), and start sending that application keypresses such that it would appear as though someone is typing. So ideally, I would be able to send a running open office process the keypress for the letter "d", and open office would then type d on the paper. Can anyone give me...
I'm trying to write a simple game working with two threads, one thread to get input from the user, and another thread to animate some scenes. I'm able to get characters without pressing ENTER just fine, but it blocks in the animating thread until the user presses a key. Does anyone know of a way to get a character from the keyboard non...
I'm going insane. I have an autosuggest box where users choose a suggestion. On the next suggestion selection the value of the text input box exceeds its size. I can move the carat to the end of the input field crossbrowser, no problem. But on Chrome and Safari I cannot SEE the carat at the end. The end of the text is not visible.
Is th...
Hello
I've got text file that contains 1 000 002 numbers in following formation:
123 456
1 2 3 4 5 6 .... 999999 100000
Now I need to read that data and allocate it to int variables (the very first two numbers) and all the rest (1 000 000 numbers) to an array int[].
It's not a hard task, but - it's horrible slow.
My first attempt ...
What I want: To know when the user has pressed the button that has the number '2' on it, for example. I don't care whether "Alt" or "Shift" has been pressed. The user has pressed a button, and I want to evaluate whether this button has '2' printed on it.
Naturally, if I switch devices this key will change. On a Bold 9700/9500 this is th...
Let's say I've got this code
<table>
<tr>
<td><input id="foo" type="text"></td>
<td><label for="foo">This is foo</label></td>
</tr>
</table>
This will hide the input:
#foo { display: none;} /* or hidden could work too, i guesss */
How do I hide the label?
...
I'm doing something in Java that requires input to be matched against the pattern ^[1-5]$. I should have a while loop looping through each line of input, checking it against the pattern, and outputting an error message if it does not.
Sudo code:
while (regex_match(/^[^1-5]$/,inputLine)) {
print ("Please enter a number betwee...
Is there a solution to the problem illustrated in the code below? Start by opening the code in a browser to get straight to the point and not have to look through all that code before knowing what you're looking for.
<html>
<head>
<title>Input ID creates problems</title>
<style type="text/css">
#prologue, #summary { margin: 5em;...
As the question says, for some reason my program is not flushing the input or using my variables in ways that I cannot identify at the moment. This is for a homework project that I've gone beyond what I had to do for it, now I just want the program to actually work :P
Details to make the finding easier:
The program executes flawlessly ...
Hello there,
How can I prevent a given app from creating a newline ('\n') after I request user input in C?
I'd like something like:
Type a number
Number: 3x10 = 30
The "x10 = 30" is added after the user inputs the number.. The problem is I can't do it on the same line (and I'd like to do it).
Can anyone help me?
...
I'm writing a simple editor in an iframe, but having trouble registering the "oninput" event to detect when the user modifies the text field such as pasting in data etc.
var txtArea =
document.getElementById('txtArea');
txtArea.contentWindow.document.designMode="on";
txtArea.contentWindow.document.open();
txtArea.co...
I an setting value for an input tag in firefox.
If I set it to a literal string, there is no delay.
The delay only happens when I try to set the value to that of an object property (contains a string), then it takes 600ms.
a)
document.getElementById('inputtag').value='test' // No delay
b)
object.testvalue='test'
document.getElemen...
Hello,
I have the known issue with wmode transparent and input textfield in my page.
I know that the question is often asked but I have a special situation with that case.
I need to embed my swf with wmode=transparent but in my swf I have an input textfield and the bug with "@" or "." symbols exists.
I have a french keyboard and I dec...
I'm trying to embrace jQuery 100% with it's simple and elegant API but I've run into an inconsistency between the API and straight-up HTML that I can't quite figure out.
I have an AJAX file uploader script (which functions correctly) that I want to run each time the file input value changes. Here's my working code:
<input type="file" ...
I want to add a custom function using jquery validation framework, to help validating names (first name and last name) inside a form.
I understand I could just eliminate numbers... but wondering if there is a 'best practice' way using jquery validation framework, somebody could suggest me...?
Thanks
...
http://stackoverflow.com/questions/1564566/using-jquery-to-add-or-remove-form-elements/
when i click the add link the information in the existing input field disappears.
How do i tell it to retain this information.
...
Hello,
I'd like an input to control that :
jQuery.ajax({
type: "get",
dataType: "jsonp",
url: "http://www.foo.com/something.php",
data: {numberInput: "NUMBER I WANT TO CONTROL" },
On the HTML side I've
<input type="text" id="jqueryControl" />
I want when a user enters a number into the jqueryControl to insert it in t...
I have a rather simple hadoop question which I'll try to present with an example
say you have a list of strings and a large file and you want each mapper to process a piece of the file and one of the strings in a grep like program.
how are you supposed to do that? I am under the impression that the number of mappers is a result of the ...
I have a file of integers. the first number - the number of subsequent numbers.
as the easiest way to take this file into an array? C#
Example 1: 8 1 2 3 4 5 6 7 8
Example 2: 4 1 2 3 0
Example 3: 3 0 0 1
...