SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
-
Apr 2, 2005, 13:03 #1
- Join Date
- Nov 2004
- Location
- Right behind you, watching, always watching.
- Posts
- 5,431
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
why doesnt this select work on input type='file'
Ive used this code a hundred times but today I am working on a photo upload app that (of course) uses <input type='file'> ... and for the strangest reason it no longer works
document.getElementById(fileBoxesTwo[x]).select();
I know Im getting the ids right from the array because the validation is working but the select doesnt work at all and I have no js errors.
Can you NOT do a select on an input type='file' ??
-
Apr 2, 2005, 13:11 #2
- Join Date
- Jan 2002
- Location
- Canada
- Posts
- 6,364
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Don't you mean focus()?
- Nathan
-
Apr 2, 2005, 16:12 #3
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It's porbably not supported for security reasons.
We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
-
Apr 2, 2005, 16:59 #4
- Join Date
- Nov 2004
- Location
- Right behind you, watching, always watching.
- Posts
- 5,431
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by someonewhois
Maybe Ill just change the boxes background color!
-
Apr 2, 2005, 21:30 #5
- Join Date
- Mar 2005
- Location
- USA
- Posts
- 5,482
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
IE4+, Netscape 7.0+, and Firefox support changing the background color of <input type="file">, but Opera 7.54 does not.
We miss you, Dan Schulz.
Learn CSS. | X/HTML Validator | CSS validator
Dynamic Site Solutions
Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.
Bookmarks