How do you determine which input method is currently active - A user can change the input method (soft keyboard) by long pressing on a text edit field - From code, how does one determine which input method the user has chosen
...
So the convention of using input type submit is this
<input type='submit' value='Submit'>
this will give me a button that says "Submit" on it and inside the post array i will have
$_POST['submit'] = 'Submit'
is it possible to have the submit button to show Submit but have the post value to be different. In other words, I want a but...
Hi, I'm brushing up on my general programing skills and I've come across a snag. I'm writing a program that simulates a colony of bunnys. Once this program starts it is autonomous, however, at any point the user should be able to press the 'k' key to cull the population by half. I can't think of a way to do this without pausing the progr...
What I want: To, on focus, change one input box into another by hide() and show().
What I get: In Internet Explorer (7/8), the input box moves a few pixels to the right when focusing.
Works well in other browsers (obviously).
Here's a link to where I have re-created the problem:
< link removed due to no longer beeing relevant >
...
Hello. Can anyone explain how to remove the orange border around text/input boxes? I think it only happens on Chrome to show that the input box is active. Here's the input CSS i'm using:
input {
background-color:transparent;
border: 0px solid;
height:20px;
width:160px;
color:#CCC;
}
...
Hi,
I am using the LibSVM tool for my support vector classification implementation:-
The first line in my input data file looks as so:-
+1 15752:47 6279:45 475:40 5231:30 515:29 7529:28 11623:24 274:24 15431:21 7342:20 4819:20 7598:18 8853:17 11134:16 501:16 911:15 4656:15 5875:14 10725:13 7334:13 13762:13 8295:12 9314:12 317:12 10641...
So I have a few inputs with the name session and they increment.... session0 session1 session2.
If I want to run them through a loop how would I do that. I'm using jquery.
for example..
for(i=0,i<10,i++)
{
var num = (session + i).value + i;
}
So what I want is the loop to go through all the inputs with prefix session and output their...
Trying to write a program that allows users to control a program via global shortcuts. I already have a working version on windows using pyHook but can't figure out how to capture global input on a Mac. The other questions I have read here so far mostly seemed to be about Linux not Mac. (which is why I'm asking) Is there any way to do th...
I've been looking all over the place for a simple input validation library for Ruby. Everything seems to point towards ActiveRecord (or similar). I'm not using Rails, I'm using Sinatra without an ORM. What's the best approach for validating user input (without tying directly to the model layer)? Simple things like "string length", "is nu...
Is it possible to change the name value of an input element?
Here is my code but i can set anything but the name.
$('#country').change(function(){
var $country = $(this);
var $state = $('#state');
var $county = $("#county");
if($country.val() != 226){
$state.attr('name', '');
$state.closest('p').hide();
...
Good Day,
I have a table of radio buttons that have an ID value that contains an item number
How can I use jQuery to iterate through all the radio buttons that start with "rb" to determine which # number was selected?
I have something like:
return_type = $("input:radio["@name=rb*"]:checked").val();
if (return_type == undefined) {...
I'm getting this strange error with "InputMismatchException". It likes to come up randomly in the sequence, and it happens every time I run this code. The data I'm using is this:
VERTEX NORMALS
# num: x: y: z:
0: 0.509884 0.597177 0.619191
1: -0.000495 0.906886 0.421376
2: -0.514580 0....
I am using this http://flowplayer.org/tools/demos/rangeinput/scrollbar.html ( as a horizontal scrollbar )
When resizing using:
$('.handle').css('width', 550+"px");
or
$(".handle").width(550).click();
after changing the handle width from 800px to 550px ( while using a 1000px width slider ) the handle cant be draged until the end of...
Taking user input such as "tomorrow", "in three days", "3 months 30 days", "march 30, 2011" and interpreting it into a timestamp usable by php.
I feel like I've seen something like this before in a task management system. I'd like to use it for something a little different but I can't find anything precooked anywhere. Maybe I saw it on ...
What's the best way to have a text input field that displays instructions of what to enter in that field in gray. When you focus on that input field, the gray instruction text disappears and your input text appears black. If you erase your input text and focus away from that input, then the instruction gray text reappears.
I've tried ...
Firefox 3.6 introduced a [multiple attribute on regular type="file" input elements](
http://hacks.mozilla.org/2009/12/multiple-file-input-in-firefox-3-6/).
I cannot get Perl to process these fields. I can call the field in a list context like this:
my @files = $CGIobject->param("File_Input");
Looping through that will give me the fi...
I have a html form with three inputs for phone number input. I want a cursor to move to next input after the current one is filled.
Like you entered 3 digits in first box than cursor moves to second and after it is filled moves to 3rd.
Is it possible to accomplish this without javascript?
...
I've made a bookmarklet that, among other things, loads a form in a "popup" div. I reset every CSS tag known to mankind on every element I create, and as far as I can tell examining it in firebug, no CSS tag is "bleeding through". However, on some pages, the input width includes its padding:
input.clientWidth = input.style.width
on ot...
I have 2 divs, the first one has the label with the content to show, but when you click the "edit" button, it should show you the div="edit" and the content of the 1st label inside of the input that is linked to it (same id).
By the other way, I saw sites that when you type something inside that input, the original label of the "preview...
How can I get the current value of the label elements within function showEditionBlock() and set them to the corresponding input fields? The function will show the "edit" div, but the inputs are not getting the original values of the labels.
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/j...