Thread: Image upload
View Single Post
  #3 (permalink)  
Old October 15th, 2004, 01:06 PM
Snib Snib is offline
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Brian is correct, and document.getElementById works in Mozilla, Netscape, IE, Firefox, Opera and every other recent browser I know of.

However, remember to assign the id attribute to the file input, in this case the value would be 'submitfile'.

HTH!

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)