input

Using Zend_Filter_Input, are Filters or Validators processed first?

When using Zend_Filter_Input, are Filters or Validators processed first? ...

change a field depending an a value

Lets say I have a selectbox wit 10 predefined amounts and an option "other". If I select "other" i get an input box to give the amount. When I leave that field i wnat the value of the selecbox to be the amount typed in the input box. How would I do that with jquery? ...

When will an EOFException occur in JAVA's streams

I am working with a DataInputStream and had a question about EOFExceptions. According to java docs: Signals that an end of file or end of stream has been reached unexpectedly during input. This exception is mainly used by data input streams to signal end of stream. Note that many other input operations return a specia...

Exclude an Item from an addelement

hello, How can I exclude a certain input box from adding an element? $('div#tabs input[type="text"], select option:selected, input:checked, textarea').addClass('takethis'); I wnat this for all input boxes and select boxes except for on certain input box. How would i do this? ...

In Firefox, how do I force a cursor to stick to the last typed character?

I have an input field in which a serial number will be typed. The number of characters allowed is set. Problem is that because of the letter-spacing, on typing a char in firefox, the cursor will jump ahead to where you would type the next char (even with maxlength set), which has the chars break break out of the little boxes they are su...

What's your take on this little input processing task?

I came across a little problem that looks very easy but requires a bit more thought than I first assumed. It can also be solved in many different ways and, I think, would be a perfect interview question. So what solution would you write down? Your input is a stream of pairs (x, y), with each x and y on a separate line. A short example, ...

Styling an Input Button using "Sliding Doors"

Hi guys, I have a webpage that is using third-party html that I cannot change. I can however edit the CSS style sheet. I have a "sliding-doors" style button that I want to swap for the default input button on the page, but I cannot figure how to do so using only CSS. Here is the html of the button <div> <input type="button" style="mar...

How can I prevent Firefox's Autocomplete?

There's several section of our site where the user needs to enter some information, and Firefox's auto fill takes over when the page loads - mostly incorrectly! For example, there's a "Fax Number" field that for some users Firefox keeps filling in with their email address. If they don't see this and they go to submit the form out valid...

name of form input causes errors.

I have never seen this, have no idea what is going on: <form action="/cgi-bin/Lib.exe" method=POST name="slider" ID="Form2"> <input type="text" name="user" value="" ID="Text1"> <input type="text" name="end" value="" ID="Text2"> </form> function setval() { alert(s.getValue()); alert(s2.getValue()); document.slider.user.va...

How do I change the color of the text cursor in an input field in IE?

From what I saw, in Firefox and Chrome, the color of the text cursor in an input field changes to the value of the "color" css property. However in IE it has no effect whatsoever. Is there any way to achieve this effect in IE? ...

How to read integer in Erlang?

I'm trying to read user input of integer. (like cin >> nInput; in C++) I found io:fread bif from http://www.erlang.org/doc/man/io.html, so I write code like this. {ok, X} = io:fread("input : ", "~d"), io:format("~p~n", [X]). but when I input 10, the erlang terminal keep giving me "\n" not 10. I assume fread automatically read 10 ...

Is it possible to add an anchor to a FORM post/get?

I noticed that in Firefox I can add a #MyAnchor tag to the action attribute like... <form action="#MyAnchor"> <input type="text" name="a" /> <input type="text" name="b" /> <input type="submit" /> </form> and when the form is submitted, the anchor automatically shows up in the URL like mypage.aspx?a=1&b=2#MyAnchor However, t...

Are you allowed to have an input without a value?

Is the following allowed? <input type="hidden" name="field" /> ...

jquery change event trigger

Hello everyone, I have a problem in need of help of JQuery. JQuery give my input to increase the use of case change. the code: #(".inp").bind("change",function (){ if(isNaN(this.value)){ this.value = 0; } } When I first time to enter characters, change case happened, input values changed to 0 But when I enter the same charact...

How do I get input from an XBox 360 controller?

I'm writing a program that needs to take input from an XBox 360 controller. The input will then be sent wirelessly to an RC Helicopter that I am building. So far, I've learned that this can be done using either the XInput library from DirectX, or the Input framework in XNA. I'm wondering if there are any other options available. The ...

Most efficient way of loading formatted binary files in Python

I have binary files no larger than 20Mb in size that have a header section and then a data section containing sequences of uchars. I have Numpy, SciPy, etc. and each library has different ways of loading in the data. Any suggestions for the most efficient methods I should use? ...

How to load all files from a directory?

Like the title says; how do I load every file in a directory? I'm interested in both c++ and lua. Edit: For windows I'd be glad for some real working code and especially for lua. I can do with boost::filesystem for c++. ...

Trouble handling input in Java

I'm trying to read input from the terminal. For this, I'm using a BufferedReader. Here's my code. BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] args; do { System.out.println(stateManager.currentState().toString()); System.out.print("> "); args = reader.readLine().split(" "); // us...

input and output without a library in C

I'm writing a small kernel for my programs in C. This is not (at the moment) an OS kernel, it's merely a way for me to keep track of input and output in programs without relying on external source (i.e. stdio.h). You might ask me why I'd ever want to do this; it's just so I know how this works, and so that I have more, and more (end goa...

Running a stubborn executable in Dos Batch file...

I've got a pretty stubborn executable that I would like to execute sequentially multiple times from within a Dos batch file. (Due to IT constrains currently constrained to using Dos batch files.) I am able to use START to launch the executable, however, it seems the executable is expecting the user to hit return prior to "really" runni...