Hi Guys
I am using this code to check a file extension of a file path listed in a textbox. I have tried changing it to upper case which does not solve it.
Any ideas
Cheers Si
var iLen = String(frmDetails.txtFile.value).length;
if (String(frmDetails.txtFile.value).substring(iLen, iLen - 3) != "doc"
{
mesg = "Please verify your CV File and submit again." & String(frmDetails.txtFile.value).toUpperCase().substring(iLen, iLen - 3)
alert(mesg);
//Return Cursur
frmDetails.txtFile.focus();
//Stop submit
return (false);
}
I am using this code to check a file extension of a file path listed in a textbox. I have tried changing it to upper case which does not solve it.
Any ideas
Cheers Si
var iLen = String(frmDetails.txtFile.value).length;
if (String(frmDetails.txtFile.value).substring(iLen, iLen - 3) != "doc"
{
mesg = "Please verify your CV File and submit again." & String(frmDetails.txtFile.value).toUpperCase().substring(iLen, iLen - 3)
alert(mesg);
//Return Cursur
frmDetails.txtFile.focus();
//Stop submit
return (false);
}