input

XNA Exclusively Lockable Input Handling

I'm writing an XNA application which requires input directed to only one input event handler, which is the object that is currently locked, i.e. game, menu, console, etc. What is the best way to do this? I've thought about creating an IInputReceiver interface (with methods such as HandleInput) that attaches into a central input manager ...

How do I style text input so it works on internet explorer?

I have tried EVERYTHING to be able to style JUST text inputs with internet explorer. Unfortunately IE doesn't support using [type=text] so that's out of the question. I even added support for http://ie7-js.googlecode.com to my webpage with <!--[if lt IE 9]><script src="http://ie7-js.googlecode.com/svn/trunk/lib/IE9.js"&gt;&lt;/script...

How do I correct the line-height inconsistency on input elements between webkit browsers and Firefox?

Is there a line-height discrepancy in Firefox that would be affecting the line-height on this input element? http://cure.org/curekids/ You'll see in the signup form right in the middle of the page that my email a dress input field has the text vertically aligned very awkward, whereas in Chrome, Safari and IE (gasp) all is well. What's ...

Combining read operations in SMB

I have an application that reads from a very large binary file. It never has to read the whole file, only small parts of it, which are spreaded accross the file. For example, in VB6 code: ReDim Data(26) as Integer Get #1, 2536, Data ReDim Data(79) as Integer Get #1, 13504, Data ReDim Data(51) as Integer Get #1, 39827, Data Etc.. Fo...

How to send input to hidden program c++?

So my question is how to send some comands or input from one (c++) program to another if hi is on hidden mode? For example I want to open some text file in notepad with function WinExec("notepad", 0); and than want to print conetent of file, I make handle to that file, make sendinput with CTRL+P, and the window of printig show up,.... I ...

jQuery - send multiple URLs to multiple text input fields

Hey all, I'm having a problem with jQuery that I thought would be simple, but I still haven't found a solution. I have an upload form for users to upload images in WordPress, and when a user clicks "insert into post" the url of the uploaded image is supposed to go into a text input field. I can get 1 to work fine, but when I have mult...

file input retry

I want to input a file into an array, and if the file doesn't exist, the program exits. I have a lot of stuff to input from the command line, and if I make a typo the program exits and I have to enter it all again. How can I create an error message that keeps the program running, and lets me retry typing the file name right. FILE *fp; ...

Matching an empty input box using CSS

How do I apply a style to an empty input box? If the user types something in the input field, the style should no longer be applied. Is this possible in CSS? I tried this: input[value=""] ...

Erasing the contents of an input / textarea when it's clicked?

Hi there, to make editing of these fields easier, I'd be nice if their contents were deleted when they're clicked. Also, the default value (presented initially) needs to be submitted if it hasn't changed, this means I'm (probably) not looking for a(n HTML 5) placeholder which gets erased automatically, but actual text. Would be even bet...

HTML: Options other than 'input type=text' and 'textarea'?

I've seen many uses of rich-text or at least natural-looking text editing being made available with seemingly any of a page's text-containing elements. What are my options to have this for myself? ...

Having issues reading Long types from a textfile using Java scanner

I'm trying to read a long type from a text file using Scanner in Java. I get the following error: Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:840) at java.util.Scanner.next(Scanner.java:1461) at java.util.Scanner.nextLong(Scanner.java:2196) at java.util.Scanner.nextLong(Scanner....

submit button behaviour in IE

Hi I have a problem in IE. Hitting enter when the focus is on the last input control sends the focus to the "Next" button. This submits the form. So far, so good. The code in my base class WizardController looks to see if the Next submit button is null, as follows: protected string NextButton { get ...

How to read available input without blocking on Windows

Hello. On Linux, I can read available input without blocking the process: fcntl(STDIN_FILENO, F_SETFL, fcntl(STDIN_FILENO, F_GETFL, 0) | O_NONBLOCK ) char buf[n]; int r = fread(buf, 1, n, stdin); if (r == 0){ printf("nothing\n"); } else { printf("read: "); fwrite(buf, 1, r, stdout); printf("\n"); } The input origin ca...

Android: InputConnection is missing a getSelection() method

Why do I have a setSelection in InputConnection, but not a getSelection()? Should I just do a getTextBeforeCursor(VERY_HIGH_NUMBER, 0) and calculate the .length() of that string? ...

Android: serving two simultaneous InputConnections

I'm working on a personalized keyboard and I'm wondering if there is a way to add another EditText to a InputConnection. So that I can serve the EditText from the user's application, but also a second EditText, which I have on a special input screen of my keyboard. This screen gets opened when I hit a special button on the keyboard. The ...

Why input[type=text] is not working in IE

Hello, I have some style like this: <style type="text/css"> input[type=text]{ width:300px; } </style> the above code works in chrome and firefox. Why not in IE? I am using this code in Reporting services at the end of Reports.aspx file. ...

Jquery .val() browser differences.

The Statement With jquery if you have a button element defined as follows: <button value="123">456</button> Browsers will give you different values if you use either .attr('value'); or .val(); The reason? A <button> element is simply <input type="button"> in a shorthand. The way you would set the value of <input type="button"> is ...

why does setting attribute "disabled" on a input text box stop that field from posting to the server when you submit a form??

if you set "disabled" on a input and submit a form, that field doesn't seem to be in the Request.Form when you post to the server. What is the logic behind the design decision to not post this field solely based on some presentation layer decision? This makes no sense to me . .. ...

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...

Globalize an input variable in Java

I am trying to make a lottery game in Java and it uses method calls instead of while loops for looping purposes. However, I cannot get an input variable( such as int bet = input.nextInt()) to be recognized as a variable for other methods. I do not know how to globalize "bet" so it can be used by all the methods instead of just in the met...