Adding file-fields to form as previously gets filled

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

OK I've done a bit of checking....

OnChange support for input type "file" is spotty at best. It should work in the latest browsers but infortunately there is no guarantee. Therefore the above methodolgy will not work. (IE4 it worked, IE5 doesn't, IE6 does apparantly).

You will have to find another method. (I thought of using a mouseOut event but it gets very messy having to check hidden fields to see if things have changed. I would therefore suggest you simply include all the boxes to begin with....

Sorry I cannot be of more help.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

alright, thanks :)
i'll probably keep the code like it is now, since i'm the only one who's gonna use it, but I thought that it would be best if it was cross-browser compatible, so I maybe later could release the script, but it doesnät look like I will now then :(

anyway, thanks for the replys everybody :)
Post Reply