Alright, very noob question. I'm making a CLI app that lets users design surveys. First they enter the question, then the number of choices and the choices. I'm using a Scanner to get input, and for some reason it lets the user enter most things, but not the text of the question. Code snippet below.
String title = "";
Question[] questio...
Hi,
i'm trying to obtain an input value with this:
var $a = ('#telephone_number').val();
alert($a);
But nothing, any idea?
telephone_number is the id of the input.
Regards
Javi
...
I'd like to have a group of HTML text <input>'s that can be all greyed-out (disabled) at the same time. I also want the entire area they are in to somehow be greyed-out or at least visibly disabled. I've seen things like this done in desktop applications.
Any ideas on an easy/elegant way to do it? I'm trying to avoid manually setting ea...
Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) render for HTML input of type number? I am looking for a CSS or javascript method to prevent the up/down arrows from appearing.
...
This problem shows only in ie.all other browser namely ff,chrome,safari,opera works well.
It doesn't show chcekbox instead shows a value box...
code:
<html>
<head>
<title></title>
<style>
*{margin:0;padding:0;}
ul {
padding:10px 10px 0 35px;
list-style:none;
}
li{
display:inline;
text-weight:bold;
color:#475D7F;
...
I have a simple contact form with name, email, a select list, and textarea. In my mailer php script I'm trying to add a simple filter to prevent SQL injection or other forms of hacking.
For example, I'm using
$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS);
Is this good?
...
This is the code to implement the 'cat' command with lisp, as is explained in the book ANSI Common Lisp, page 122.
(defun pseudo-cat (file)
(with-open-file (str file :direction :input)
(do ((line (read-line str nil 'eof)
(read-line str nil 'eof)))
((eql line 'eof))
(format t "~A~%" line))))
Why is ...
Hello,
I have a text file that is formatted like JSON, but in a print/view friendly format and I want to convert that string to valid JSON.
Basically, I want to read the file using PHP5 and call json_decode to deserialize the string.
But, json_decode is not able to parse the "print-friendly" json string.
I am getting error 4 Invalid or...
Hi, I made a form that works only with numbers, and I want alert the user when he type letters which are invalid alert he and delete the caracther or make the input box red ..., how can I make that?
...
Which of the dataset formats listed at this link is the easiest to load for processing in R? A few minutes with a text editor should be enough to turn the text version into literal data but can one of the other forms be loaded in less than O(n) user effort?
I've found this laundry list of IO options but it dosn't seem especially helpful...
I have a group of indexed input fields that contain an autocomplete text field that returns a list of names found in the database. The user can add as many "groups" as they need to, with each "group" containing a set of incremented indexed input fields. If the user begins typing, however, and ultimately enters a name that isn't found i...
I was using simple textarea element and then replaced it with iframe with designMode='on' to give user the possibility to mark some text and make it italic. But I still want an iframe to look like textarea, so I need a border around it similar to that which appears in Chrome and Safari when textarea is active. How can I achieve such an e...
I have an input box that has default value text assigned to it. How can I remove this text when the user focuses on the field::
CoDE
<input type="text" name="kp1_description" value="Enter Keypress Description">
...
I have an input box and I want it to be disabled at the same time as hidden to avoid problems when porting my form.
So far I have the following code to hide my input:
$(".shownextrow").click(function() {
$(this).closest("tr").next().show().find('.longboxsmall').hide();
});
This is the input that gets hidden as a result:
...
Hello, all,
I want to create a GUI python script to launch several processes. All of these processes originally were called by setting up a shell with a perl script (start_workspace.perl), and type the executable file name under the shell.
inside, start_workspace.perl, it first set some ENV variables, and then call exec(/bin/bash), wh...
I just started using XNA Framework 4.0 today, and I was wondering what the easiest way was to get input from the keyboard. I recognize a lot of C++ in C# but the whole Java side of it is alien to me. This coupled with XNA is a little confusing so, please be specific and give examples. Thanks.
...
Hello,
I am creating a little resume template. Instead of having 5 input fields in the Work Experience category, I would like to have only one displayed. By clicking something like "Add another company" would add another field for the user. What can I use to accomplish this?
thank you
...
Hey all,
I am just going to be honest and say that I hate building web forms. I am a programmer, not a designer but frequently get stuck building input forms for various web applications. I would really like to find a utility for doing this in a more visual manner. The problem I have found in the past with products like this (cough c...
Hello, This is ordinarily a simple task. I have a simple sign in form that has an email input,password input, and a submit button, all in a horizontal line. After hours and hours of taking styles off, and trying different structures, the button sits a little lower then the boxes. I am thinking it might be because I have absolutely positi...
I have a hidden input field that will take the value of another on keyup and I'm trying to figure out how transform the value in the hidden field to lowercase and replace spaces with hyphens. So, if someone types "This Is A Sample" in the title input field, the identifier input field will be set to "this-is-a-sample".
<input type="te...