i've been browsing through that page, the coding is a bit dodgy
This:
code:
if(ExtensionOK == false) {
// file extension didn't match any of the
// allowed ones, signal user with a confirmation
// and clear the form field
if(confirm(fieldVal + " is not an allowed filetype.")) {
document.forms[0].reset();
}
}
Should replace:
code:
if(ExtensionOK == false) {
// file extension didn't match any of the
// allowed ones, signal user with an alert
// unfortunately we're not able to reset
// the file-box
alert(fieldVal + " is not an allowed filetype.");
}
[ April 03, 2003, 08:54 AM: Message edited by: DigitalArmyNetwork ]