input

Jquery Closest From Element Value

Hey All Im trying to get a form element value using closest. Here some example code. <table> <tr> <td>Hour <input type="input" value="12" name="data[hour]" class="hour" /></td> <td>Minute <input type="input" value="12" name="data[minute]" class="minute" /></td> <td><a href="#" class="add-data">Add Row</a></td> </tr> </t...

How to set value for the form element using mootools

I have a form that have input element and the select element with multi select. so how can I set value for the input element and select element in mootools. ...

Change input locale (keyboard -- left shift+ alt + 1) key sequence PROGRAMMATICALLY

Dear Sirs, On XP, if you go to control panel -> regional and language Options -> Languages Tab -> Details -> If you have more than one keyboard in use, then, click Key Settings. Those are the settings I would like to change. I would like to set it up so that the DVORAK keyboard is Left Alt + Shift + 1. I can use C++, C# or wha...

Simple noob I/O question (C++)

Hi, sorry for the noob question, but I'm new to C++. I need to read some information, line-by-line, from a file, and perform some calculations, and output into another file. For example, we read a unique ID for each line, a name, and 2 numbers. The last 2 numbers are multiplied, and in the output file, the ID, name and product are print...

using DictWriter in Python to write a subset of a dictionary's keys

I wrote a function that serializes a list of dictionaries as a CSV file using the CSV module. I sometimes want to write out to a file only a subset of each dictionary's keys however. I use the following code: def dictlist2file(dictrows, filename, fieldnames, delimiter='\t', lineterminator='\n'): out_f = open(filename, 'w') ...

ASP.NET file browser get filepath

I'm using an <input type="file" /> as a file browser dialog in MVC. I don't actually want to upload the file though, I am using it to select a template on a shared drive. I only want to get the full filepath in my action method. The server will then process the file and force download to the client. I have got hold of the HttpPostedFile...

Is there any solution for Grails to select a folder like <input type="file"

is there a solution to select a folderpath as comfortable like the input-file tag? ...

symfony: question about a choice widget

Hi, I have a choice widget in a form: $years = range(14,130); $this->widgetSchema['age'] = new sfWidgetFormSchema(); foreach (array('from', 'to') as $value) { $this->widgetSchema['age'][$value] = new sfWidgetFormChoice(array( 'label' => $value, 'choices' => array_merge(array('' => '-'),array_combine($years,$ye...

I want to be able to access the routed events for mouse events in a Form.

If you want to get mousemove events over a group of controls in a window, it seems there are a couple of ways to do this, but none are very clean. The hacks I've seen: Application.AddMessageFilter; Blatantly check all events coming to the window. (difficult to limit to a specific part of the program.) Recursively hook up handlers to e...

Force focus on one element with an exception. (jQuery)

I have two input fields. I want to force the focus on #area no matter where the user clicks unless it is on #input. I've tried something like this, but since input is part of document, it does not work. $("#area").focus(); $(document).click(function() { $("#area").focus() }; $("#input").click(function() { $("#input").focus() }; Though...

struts2 validation result input cannot be an action

Hi I have an action Registration.java which is used for users to create an account. this action class has two methord: doList and execute. doList gets data from the database and renders the initial jsp page with some s:select tags. execute do the actual business logics. in the struts.xml: <action name="InitList" method="l...

HTML form input tag name element array with JavaScript

This is a two part question. Someone answered a similar question the other day (which also contained info about this type of array in PHP), but I cannot find it. 1.) First off, what is the correct terminology for an array created on the end of the name element of an input tag in a form? <form> <input name="p_id[]" value="0"/> ...

Scanner in Java not working

I'm trying to write a very simple number guessing game (code is below). After 1 round is finished, the user is supposed to be able to decide whether he/she wants to play another round or not. Problem is, the program always skips the last question (never letting the user answer 'y' or otherwise. What am I missing here? Is there something ...

Detect and remove Inputbox overflow.

I have a input box with the attribute overflow:hidden; I have also used javascript to stopped text being entered so that it cant overflow however I would like to be able to remove any overflow if the user manages to insert text into an already full textbox. Is there anyway in javascript to detect when a texbox has hidden overflow?...

Need help jumping into Java and Java input from C++

This is my first program in java and I haven't found any good websites like this one for C++ and it's confusing for me because I just started writing java and I just came from C++. Anyways, concerning this code, could someone explain how to fix this code because of the line containing Scanner and/or how to simply receive inputs, because...

Input Field, wrap text instead of extending horizontally

I have an input field, a user will write text inside but when the text is to long it just extends horizontally instead of dropping down vertically. I tried: overflow: hidden; word-wrap: break-word; and I had no luck. Any other suggestions on how to accomplish this? ...

How can I restrict the text entered into an input text element using jQuery?

I have an input text element being used as a jQuery UI datepicker with a custom date format. The date format allows months to be entered in as JAN, FEB, etc and so the constrained input allows all characters to go through. See this question. How can I restrict the text entered to match my date format "dd-M-yy"? Is there a way to use jQ...

Passing Hidden Form Elements set via Javascript

I have a simple HTML Form that has some input fields for sending an SMS/TXT message. I also have a jQuery script that counts the number of characters entered and also works out how many SMS Credits will be used to send the message. These appear in a div as follows: <div id='message'> <span id='char'>0</span> characters, <span id='msg...

Insert link URL and Title text into textarea at cursor location from form input fields using JavaScript

I found some code on stackoverflow that inserts text from a text input field into a textarea at the cursor location. What I want to do is modify this working code so the user can enter a URL with Title text into two form input fields, build a complete hypertext link from the input and insert the resulting HTML for the anchor tag into th...

Exclude jquery ui style from certain buttons/inputs

I need to exclude certain elements from being styled by jquery ui. Is it possible to exclude a certain section of code or disable jquery ui for a specific input button or anything similar? ...