Alright so in Java I want to ask the user for a time in 24-hour format. I have managed to leverage DateFormat and SimpleDateFormat to tell it what format the time is being entered in and then to interpret that accordingly, throwing an exception if it does not follow that format. Here is what I have:
DateFormat fmt = new SimpleDateFormat...
I have an AIR app that download a webpage using HTMLLoader and I want to set the value of a form input element with a type=file. I've read that this is not allowed for security reasons but I've also found a Firefox extension that does it. Below is the js function they use. If a Firefox extension can do it, is there now way for an AIR app...
I want to be able to start and stop an NGREP process from inside my python code. I really dont have experience with python on a system level.
Normally I run NGREP from the command line, but I would like to be able to run it from a script every hour and capture the trace and then process the results.
Can anyone point me in the direction...
I have 2 basic forms -- sign in and sign up, both on the same page. Now, I have no problem with the sign in form auto-filling, but the sign up form auto fills as well, and I don't like it.
Also, the form styles get a yellow background which I can't manage to override and I don't want to use inline CSS to do so. What can I do to make the...
My batch file reads all of the files from a windows directory with the option to include sub directories or not include them, and then saves the list to a txt file. It woks perfectly, but for some reason the application returns "File Not Found" after you answers yes or no to the sub directories question (although the question does functi...
What I am doing is creating a simple html page in which there is a textbox. A user posts some input to that textbox such as
first last
first last
first last
first last
Imagine these are different names. What I would like to do is take the input in the textbox, and display it to the screen with the repeating names taken out, in alphabe...
Hi, I asked a question here earlier today and got that fixed, but now I have another problem.. My batch file is supposed to take the user input of a directory and then save all of the names of the files within that directory to a user specified name text file. It also has the option to allow for you to include or not include subdirectori...
How can i create a form using 3 inputs for DOB 01/01/1982 but only having 1 field name in order to prepopulate a form. input 1 = MM input 2 = DD input 3= YYYY.......but the 3 combined only have on field name?
...
Is it possible, with only CSS, to style an HTML label dependent on its input's state?
In my case, I want to style an <input type="checkbox"> based on whether it's checked.
I tried putting the label inside the input, but Firefox and Chrome (at least) seems to parse them as siblings, even though they're clearly nested in the input source...
Consider the following silly Perl program:
$firstarg = $ARGV[0];
print $firstarg;
$input = <>;
print $input;
I run it from a terminal like:
perl myprog.pl sample_argument
And get this error:
Can't open sample_argument: No such file or directory at myprog.pl line 5.
Any ideas why this is? When it gets to the <> is it trying t...
How do you set a variable equal to an array in Java. For example I have a class for input and a class for calculations which hold arrays. when I accept the user input from the input class how do I pass that variable into the array of my calculation class?
...
I've got the following piece of code:
...
int x = 0;
int y = 0;
cin >> x >> y;
if (x == -1 && y == -1) {
cout << "exit!";
}
else {
doSomething();
}
...
And it works, but only if I enter 2 numbers. If I were to enter a letter, like 'n', the program gets thrown into an infinite loop. How do I check to make sure the user entered ...
I need to capture the keyup event to provide live validation when user is typing in an input (change event fires only when the input loses focus).
I am having trouble getting the edited value of the input that fired the evnt.
The code also runs on timer to prevent multiple calls when user is typing (fires only every 500 ms).
I have se...
Basically I'm still in the starting phase, and I know how to use console.writeline, but I have no idea on how to have it read input from the user.
For example, I'd want a user to be able to type in a pair of numbers, then return the result.
My goal is a program that receives input , then combines them and returns the average.
This is...
I am using a perl script to read in a file, but I'm not sure what encoding the file is in. Basically, my file is a list of book titles, but each book has other info associated with it (author, publication date, etc). So each book title is within a discrete chunk of data for the book. So I iterate through the file line by line until I fin...
Hi!
Do you know some way to programmaticaly show different typing indicators on the screen?
I know I can simply draw bitmap but I'd like to do it universally for any RIM OS version.
Also, there is a setMode(int) function in 4.2.1 but in 4.3 it's already deprecated...
Any suggestions will be helpful, thanks!
...
There are some similiar questions posted here, but they are too specific.
When a form has multiple image inputs and the server side uses their names and/or values to distinguish which one was clicked it works perfectly in FF and people often write the whole thing before finding out taht HTML specifies nothing has to be sent and some bro...
I've learned how to store a single input of data and return a value based on it.
What I want to do is obtain multiple inputs from the user, then return a result. But how do I define each input?
Like, if I want the first input to be known as 'stock', and the second as 'value', how do I do that?
I hope I explained my question properly....
I'm try to create a simple form that spits out a measurement. For Example
32 B should be (32+5)=37
I'm not sure whats wrong. Please help~
Thanks so much!
<HTML>
<HEAD>
<TITLE>Bra Size to Chest Size</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function CalculateSum(Atext, Btext, form)
{
var A = parseFloat(Atext);
var B = parseFloat(this.Cup...
How can I generate a result from jquery + ajax in a another text box
<form action="someanotherpage.php">
<input type="text" name="data" value="" id="data"/>
<input type="text" name="response_data_here" value="" id="response"/>
<input type="submit" value="Apply" />
</form>
EDIT:
I edited some content..Im so sorry forgot to...