input

Disable certain input element with javascript enabled

How do I disable element so it will not submit when clicking on it (but make sure javascript events still work)? "Disabled" attribute turns javascript off. ...

One liner in Ruby for displaying a prompt, getting input, and assigning to a variable?

Often I find myself doing the following: print "Input text: " input = gets.strip Is there a graceful way to do this in one line? Something like: puts "Input text: #{input = gets.strip}" The problem with this is that it waits for the input before displaying the prompt. Any ideas? ...

javascript input onchange not working

why this doesn´t work: inputButton.addEventListener('onchange', jsFunction, false); I change the inputbox and it doesn´t call jsFunction. ...

Why do text inputs change their border attributes when a background color is applied?

Here's an example, I'm looking at in in FF 3.6 and the input with background: transparent has a different border to the untouched one. http://jsfiddle.net/Pa2Kd/ ...

operation with all inputs, without type="checkbox"

I want to do some operation with input elements in td. I used for this: var inputElements = $('td > input', row); inputElements.each(function () { //some operation }); How can I except checkboxes? ...

How to make 2 executables communicate in both directions in Windows

Hello. I have 2 Windows console applications, reading from standard input and writing to standard output. I'd like to assume I don't have the source code to any of them (actually I usually have the source code of one of them). I want to direct the standard output of one to the standard input of the other and vice versa, thus allowing c...

How to read input until the user enters ^X

I am creating an interpreter for my esolang, and I need the user to enter some text which then will be interpreted as an INTERCAL program. I want the user to enter text, which may contain any character including newlines, until the user presses ^X (Ctrl-X), like this: Enter your code followed by ^X: Bla Blablabla Bla^X Thank you for ent...

Brackets at the start of input in matlab ?? [ x , y ] = ....

Hello, I would like to know what is the use of having inputs in brackets like this : [fx, fxx] = differentiate(...) why is fx and fxx in square brackets ? Another example includes this [y,t,ysd] = step(m) Please explain ! Thanks ...

XForms and multiple inputs for same model tag

Hi! I apologize ahead of time if I am not asking this properly.. it is hard to put into words what I am asking.. I have XForms model such as: <file> <criteria> <criterion></criterion> </criteria> </file> I want to have multiple input text boxes that create a new criterion tag. user interface such as: <xf:input ref=...

Are HTML tags XSS safe if they have no attributes?

Title says it all. ...

Javascript replace using regexp

<input type="text" value="[tabelas][something][oas]" id="allInput"> <script type="text/javascript"> allInput = document.getElementById('allInput'); var nivel = new Array('tabelas', 'produto'); for (var i =0; i < nivel.length ; i++ ) { alert(" oi => " + allInput.value + " <-- " + nivel[i]) ; var re = new RegExp("^\[" + nivel[i] + "\...

Bison input analyzer - basic question on optional grammer and input interpretation

Hi All, I am very new to Flex/Bison, So it is very navie question. Pardon me if so. May look like homework question - but I need to implement project based on below concept. My question is related to two parts, Question 1 In Bison parser, How do I provide rules for optional input. Like, I need to parse the statment Example : ...

JQUERY Focus, sometimes ends up making the blinking text cursor Disappear

Anyone know why .focus() makes the cursor go away but it comes back when you click in the text input box? ...

Delphi: Multiple tokens edit component

Hello, I'm looking for an enchanced edit component that allow users to input multiple tokens (items) manually separated by some symbol, or to select them from another source. It's something like "TO" field in outlook or facebook that allow you to input multiple recipients. Can anyone suggest any solution? Thanks in advice! ...

How to read LARGE Sqlite file to be copied into Android emulator, or device from assets folder?

I guess many people already read this article: Using your own SQLite database in Android applications: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/#comment-12368 However it's keep bringing IOException at while ((length = myInput.read(buffer))>0){ myOutput.write(buffer, 0, l...

web: How can I place an input box in a picture?

I want to use a picture as my website design. It's a plain one, like google's. <img src... done... > now, I want to place an input box at the text area of the picture, how to I do that? ...

Can you restrict the location of input type=file?

Is there a way to restrict the user to a folder on the server when they choose to browse for a file using the input type=file button? for example: If you have images you want the user to choose from that only exist in the server's image folder to prevent them from search for and uploading their own images. ...

C problem, left of '->' must point to class/struct/union/generic type ??

Hello! Trying to understand why this doesn't work. I keep getting the following errors: left of '->nextNode' must point to class/struct/union/generic type (Also all the lines with a -> in the function new_math_struct) Header file #ifndef MSTRUCT_H #define MSTRUCT_H #define PLUS 0 #define MINUS 1 #define DIVIDE 2 #defi...

How to set time limit on input

in python, is there a way to, while waiting for a user input, count time so that after, say 30 seconds, the raw_input() function is automatically skipped? ...

File input validation

You have a web page with a form that has an input field of type file. You have another web page that expects the data from the first page. In the second page you need to check whether a file has been sent. How do you do that? I've been using the following statement but I'm not sure about it: $_FILES["file"]["tmp_name"] == "" ...