input

Adding extra input fields when I need them

I trying to create an HTML/CSS/JavaScript based list manager. I'm using text input fields as my individual list items, with the first text input field being: <input type="text" id="input1" value="Enter your first item" /> I'm using jQuery to create a new text input field if I've used the previous text input field: <input type="text"...

Text Input Box With Instant Content Duplication

I want to have users be able to enter data into a text box and instantly have that text appear in another div as content with a character limit on the input box. Much like how SO does it when asking a question but for a different application. I am using the YUI3 framework if that makes any difference. Unfortunately I don't know wher...

Best method for selecting multiple checkbox items

I am developing an internal messaging application which is to be used by approximately 500 users. When composing a new message it will ask who you want to send the message to. Instead of presenting the user with a checkbox list of 500 users which they can pick from (i.e they may only wish to send to 20-30 of the 500 users) I wanted to as...

How does an OS or a systems program wait for user input?

I come from the world of web programming and usually the server sets a superglobal variable through the specified method (get, post, etc) that makes available the data a user inputs into a field. Another way is to use AJAX to register a callback method to an event that the AJAX XMLhttpRequest object will initiate once notified by the bro...

How do I create a timeout for user input in TCL ?

I have a large TCL script that, at points asks the user questions like, "Please enter your choice : A, B or C ?" The user has to type in the character and press "Enter" to continue to script. Is there anyway I can automate this in TCL? Something like, if the user doesn't enter anything within 10 seconds, by default option A will be take...

How to read integers from a file, line by line in C++

I have a text file with on every line one or more integers, seperated by a space. How can I in an elegant way read this with C++? If I would not care about the lines I could use cin >>, but it matters on which line integers are. Example input: 1213 153 15 155 84 866 89 48 12 12 12 58 12 ...

How to filter items and show items.

Hello, this is what I am planning to do. Suppose I have a list of names (in DIVs) <div class="person"> Mike Mulky </div> <div class="person"> Jenny Sun </div> <div class="person"> Jack Kickle </div> I would like a text box, where the user can type "Jenny", and filter out the DIV's with "Jenny" in them. What JQuery plugin can allo...

What's the most low-level official touch input API which can be accessed from developers? (iPhone)

What's the most low-level official touch input API which can be accessed from developers? (iPhone) ...

how to get the value of form input box in codeigniter

value of FORM INPUT Help!! //this is just a refrence of $nm and $fid from test_model// $data['fid']['value'] = 0; $data['nm'] = array('name'=>'fname', 'id'=>'id'); say i have one form_view with <?=form_label('Insert Your Name :')?> <?=form_input($nm)?> and a function to get single row function get($id...

Reading variable length user input in C++

How do I read in a variable number of characters? The user can input a positive or negative number that is too big to be stored in an integer. I am then checking to make sure the char is a number and storing it in an array of ints (although that will probably be changed to a short since I only need to be able to store 0-9). istream& op...

C++ Beginner's question on input/output text files.?

If I have an input text with the only thing written of "A" and I want a series of code that will allow me to generate the next ASCII set (B), how would I do so? #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { return 0; } #include iostream> #include fstream> #include iomanip> #include string> using namespace std; int ...

How to dynamically load a value into a text field???

Hello guys, I am having a small problem with pushing a value into a input text field and have it pass on to the next step upon submitting a form in IE. This process works just fine in FF and Chrome and pretty much every other browser. Here is the input field: <div id="donate_form_gift"> <fieldset id="donate_form_g...

Using an international keyboard in iPhone app

I need to be able to force a different international keyboard, without the user manually having to go into the Settings application and enable that keyboard. For example, the user only has English (AU) enabled, and I want to be able to bring up a keyboard for inputting Chinese without them having to enable the keyboard, and switch to th...

How to automatically supply input to prompt when running linux ksh script?

I currently have a script that ssh's into another server and runs a command. When the ssh command runs though in prompts if I would like to connect (yes/no) and for the password. Is there a way that when the ssh call is made that I could automatically supply the input for the prompt? Also, I do realize that using a public key with the...

Creating objects from their description

I need to create objects by reading their description from a text file. The objects are also in a hierarchy or can be decorative objects For example For this descrition in a text file: Sample.txt A FileReader "fileName.txt" A Buffered FileInput reader "FileName.txt" A Buffered StringInput reader "TestString" The program should ...

How to remove the selected radio button when clicking on an element within page using Jquery

Hello guys, Okay i'm stuck on something here. This is the page i'm working on: https://www.passovermeal.org/ I have two radio buttons with text input fields attached to each. If the second radio button is selected I would like to remove value from first text field. Now if I click on an area on my page like a div with an id of #produ...

Certain Python commands aren't caught in Stdout

I've written a simple program that captures and executes command line Python scripts, but there is a problem. The text passed to a Python input function isn't written to my program despite my program capturing stdout. For example: The Python script: import sys print("Hello, World!") x = input("Please enter a number: ") print(x) prin...

Windows: Language Bar will not show input method options for some of my windows

I am trying to make our application properly handle international input. Since we handle text input and font rendering ourselves, I wrote custom code to handle the respective WM_IME_* messages. Now, this all works fine, with one exception: When our applications main window is open, the Language Bar will not let me pick any options. I ca...

jquery disable multiple input children of a div

I want do do something like below from a checkbox, There's a checkbox on every row, and I'd like to disable all the inputfields on a row with the class .room when the checkbox is clicked. function toggleStatus(link) { $(link).closest(".room").children(':input').attr('disabled', true); } also tried function toggleStatus(link) { ...

do while infinite loop stop on keyboard input - C

there is any way to run an infinite cycle that stops only on user input from keyboard without asking every cycle to continue? in a C program (I'm developing a C chat that read the entries with a for(;;) loop and I need to stop it only when the user want to type and send a message) hi all! ...