I have a file inputfile
<input tye='file' id='funPic' name='funPic' />
I need to get the name of the selected file,
$('#funPic').val() in Firefox and Chrome gives abc.jpg where as IE7 & IE8 gives c:\xyz\abc.jpg
Why is this? I need only the abc.jpg part.
...
My application is working fine on the normal iPad display, but I also need to output to VGA out. When I do this, I need to add the view to the external screen's window which seems to mean that I can't use it to accept input from the iPad screen.
I want to redirect input from the iPad's window to the window displaying on the external scr...
Hey there,
I currently have a table that populates itself with domains and their relevant paths on a server, e.g.
Domain Path Functions
example.com /home/domain delete
The domains are grabbed from a PHP array, but thats the general idea.
Now, I want to be able to put an edit button next to my delete button, and when...
With a select tag, it is possible to post multiple values using only html by selecting more than one option.
ie
<select multiple="" ><option value="1"/><option value="2"/><option value="3"/> </select>
Is it possible to pass more than one value as one would achieve with the previous example using one or more <input type="hidden"> field...
I have found that the Windows VK_OEM_X values have a tendency to refer to different physical keys, which makes them useless for localization-agnostic game controls.
I am thinking about using scan codes directly by hard-coding them, but that is my last resort.
Is there any other way to reference the physical keys on a 101-key* keyboard ...
<input type="file" />
Can I replace the file input field (above) with a simple button:
<button type="submit">Upload</button>
File input doesn't fit nicely into the design, and styling it is a pain so if its possible to use a button instead for file uploading, thats also cross-browser compatible, that'd be awesome!
Thanks!
...
HI there, I am looking for best practice or ideas for cleaning tags or at least grabbing the data from within custom tags in a text.
I am sure I can code some sort of "parser" that will go through every line manually, but isnt there some smartere way today?
Data thoughts:
{Phone:555-123456789}
here we have "phone" being the key...
Is there a cross-browser way to detect live changes to an input field?
By live, I mean not when the field loses focus, and not on the next keypress, and so on. Immediately or something like it.
Using combinations of jQuery and .change(), .keyup(), .bind('paste') and so on I can get working live change detection in some browsers, but no...
Hi,
I would like to be able to stop the user from modifying certain portions of text in my WPF RichTextBox. To do this, I am handling the PreviewKeyDown event and setting the Handled property to true so that no further processing takes place.
The problem with my approach is that navigation keys are also disabled. I know that I could de...
I have a bunch of forms that have a lot of <input type="text"> fields on them. The user now is requiring that I provide a "read-only" version of every single form. I would recode every field into an
<xsl:choose>
<xsl:when test="/..../permission = 'E'>
<input ....>
</xsl:when>
<xsl:otherwise>
...
</xsl:otherwise>
</xsl:choose>
m...
In a form a text box is created dynamically by clicking on add button such that the text box is created in a new row.Now my problem is the validation of text boxes which were created dynamically such that it shows a message if any of text boxes are left empty when form is submitted by clicking submit button.Please help me out.
EDIT
<...
Given the html fragment
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test JQuery AppendTo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2...
In my forms, I'd like to use the new HTML5 form types, for example <input type="url" /> (more info about the types here).
The problem is that Chrome wants to be super helpful and validate these elements for me, except that it sucks at it. If it fails the built-in validation, there's no message or indication other than the element gettin...
I'm using one of the new HTML5 input types, number:
<input type="number" />
In Opera, which is the only desktop browser I know of which currently recognises it, it renders it as such:
The problem I'm facing is one of validation. If a user types something invalid into the field, eg: "abc", the value returned by myInput.value is an e...
I tried to read in data from a text file using fstream but got wrong data.
ifstream fin ("C:\\Users\\rEgonicS\\Documents\\test.in");
int number;
fin >> number;
cout << number;
test.in is simply "12".
cout reads 4273190. Can someone explain why this is so and how to fix it?
Thanks in advance.
*Stackoverflow thought I was a bot ; o ;...
Hey, where do I place a text file that I'm trying to read using fstream? In this tutorial, http://www.gamedev.net/reference/articles/article1127.asp, they say
ifstream fin("input.txt");
where would "input.txt" be located? Before I tried directing a path to the file by doing this "C:\Users\XXXXXXX\Documents\test.in". This however does n...
Hello people,
I'm developing a system in ASP.NET and I need a textbox mask to handle an input of floating-point numbers. I haven't yet found a javascript mask that would RESPECT the decimal point. I've tried several, including dFilter and "Mask JavaScript API" and none of them could do the job in a swift manner.
The numbers I need to d...
I'm currently parsing CSV tables and need to discover the "data types" of the columns. I don't know the exact format of the values. Obviously, everything that the CSV parser outputs is a string. The data types I am currently interested in are:
integer
floating point
date
boolean
string
My current thoughts are to test a sample of ...
Hi,
i'm trying to give the same width to the text and password inputs.
So i write this:
input[type="text","password"]{
width: 138px;
}
But it doesn't work.
Any help?
Regards
Javi
...
My input file is:
2 5 <-- extra space at the end
4 <--extra space at the end
int main(){
ifstream input("input.txt");
istream& in = input;
string line1;
while( getline(in,line1)){
istringstream number1(line1);
while(number1.good()){
number1 >> temp1;
cout<<temp1<<endl;
}...