input

Is there a way to hide the new HTML5 spinbox controls shown in Google Chrome & Opera?

Google Chrome now, and Opera before, shows a "spin box" control beside a input field of type "number". I want to be able to style this, or hide it. Are there ways of controlling this UI element yet? EG: <-- That little ui element with an up and down arrow. It's not that functional and its adding unnedded elements to a form I've created...

Special Characters line ' are not displayed in text box of html form

I want to show a predefined value in the text box which may contain special characters like ' i.e. single quote e.g. Amit's Birthday.... When I am displaying the string it shows only Amit and omitted the further string. I used htmlspecialchars() function as i am using php but its not happening result is still same. Some body please Help ...

Alternative to name attribute on image input in HTML5

HTML5 does not $_POST the 'name' attribute for image inputs. I am trying to find an alternative so that my server-side validation checks can identify which submit button in the form has been clicked on. Can anyone offer suggestions. ...

How to control the position of "select box" ?

How to control the position of "input select box" when input character chinese? ...

bubbles within input fields - How?

I want to develop bubbles within input fields. Does anyone know a good tutorial or at least the actual name so I can look myself? I have provided examples below that illustrate what I mean, within the "to" field. Examples: Hotmail: http://thesocialmediaguide.com.au/wp-content/uploads/2010/03/email-to-Facebook.jpg ...

How test(junit) input keyboard in Java.

Hi Everyone, i need make a test unit for a input keyboard in Java, Exists any way easy to do it? Thanks. ...

Making outputs from an array in Matlab?

I have an array of 20 items long and I would like to make them an output so I can input it into another program. pos = [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,] I would like to use this as inputs for another program function [lowest1, lowest2, highest1, highest2, pos(1), pos(2),... pos(20)] ...

Dealing with simultaneous button presses and changing shift states

I am currently working on a (Python2.5) application which handles input from a game controller. We've designated a button as a shift button to change the mapping (inputtype,value->function) of the other buttons on the fly. The mapping also depends on the mode our application is running in. We are running into lots of hairy edge cases (e....

JQuery / JavaScript - trigger button click from another button click event

Hi I have this HTML which looks like this: <input type="submit" name="savebutton" class="first button" /> <input type="submit" name="savebutton" class="second button" /> and JS: jQuery("input.second").click(function(){ // trigger second button ? return false; }); So how can I trigger the click event from the 2nd button by cl...

PHP: How to mass replace $_POST[...] with strip_tags($_POST[...])

I'm currently recovering from a nasty XSS attack, and realized I never sanitized inputs on several of the forms on my site. I used Notepad++'s Find In Files feature to search for $_POST in all my PHP files, and got almost 5,000 results. Now, I really don't want to go and manually add strip_tags to every one of those results, but a repl...

AS2 Flash Input Text Problem

Hi, Well I've big problem and no idea how to sort it out. I've made a form in Flash using input text fields. The point is i'm Polish so our customers expect so they can put a polish character inside the input text field ( ex. źćż etc ). The problem occurs on WebKit Engine Browsers ( Safari, Chrome ) which just put normal characters ( l ...

button height problem when using &#10; char for line break

i'm using the char to make a line break in a button label. here is the code: <html> <input style='width: 50px;height:60px;' type='button' value="abc" /> <input style='width: 50px;height:60px;' type='button' value="abc&#10;asd" /> </div> the problem is that a button that's has the char in his label is not in the same he...

File upload in ASP.NET MVC without input field type file?

I want to have file upload possibilites on my MVC site, and I have that no problem with the input field type="file". But the problem is, the browser decides how this field should look, and that ruins the look and feel of the page. So my question is, if I want to have icons/images for download and upload and so on instead of the default ...

how to send file input using jquery?

i have a form that contains 3 File inputs.i want to send it via jquery.i tried serialize function in jquery,but i realized that this function don't send file inputs! here is my form : <form id="submit_pics" action="#" > file 1 : <input name="file1" id="file1" type="file" /><br /> file 2 : <input name="file2" id="file2" type...

How to populate a series of checkboxes from a hidden csv field using jQuery

I have a form with a bunch of checkboxes, and a hidden field that contains CSV data. Basically, I need the checkboxes to be ticked based on the value of the hidden field: <form> <input type="checkbox" id="01" name="01" /> <input type="checkbox" id="02" name="02" /> <input type="checkbox" id="03" name="03" /> <input typ...

how to input variable into a python script while opening from cmd prompt?

I am wondering how would one get variables inputted in a python script while opening from cmd prompt? I know using c one would do something like: int main( int argc, char **argv ) { int input1 = argv[ 0 ] int input2 = argv[ 1 ] ..... } how can I achieve the same kind of result in python? ...

Add data from array to empty input with jQuery

I have a a handful of dynamically generated inputs. Some have IDs, some do not.I also have an array of IDs. I need to loop through the array of IDs and input the next available ID into the next input without a value. I have tried $.each(event_array, function(intIndex, objValue){ $('.event-data').find('.event-id').each(function(i){ ...

Browser reading HTML from standard input

Does anyone know a Linux browser (it can be console-based) that can read an HTML page from its standard input? For example, I want to do this: generate_html | browser Thanks! ...

I must be running into a buffer limit somewhere receiving data from TCP socket using recv( )

Hi, I'm downloading 6kB of data from a test instrument connected via TCP socket. I'm using SOCK_STREAM: if((MySocket=socket(PF_INET,SOCK_STREAM,0))==-1) exit(1); I haven't set the any buffer sizes, so I assume I'm using whatever the default is. I'm having a problem with receiving data. Here's the statement: if((recv(MySocket, &YRa...

Change Div background when input is clicked - How?

Does anyone know how to the change the background of a DIV when the a <input> is clicked? ...