E
effendi
I amtrying to rewrite this code to be compliant tofirefox and MSIE.This
works fine inMSIE
if (thisForm.AttachmentCount.value==0) {
attachment=thisForm.all["Attachment"].value
if(attachment!="")
{
attachment=attachment.split(".")
if ((attachment[attachment.length-1])!="doc")
{alert("Please attach your minutes in MS Word format only")
thisForm.SubmissionCheck.value=""
return false}
}
}
The line--> attachment=thisForm.all["Attachment"].value does not work
in Firefox. I tried to change it to
attachment=thisForm.getElementById('Attachment').value but its ooes
work either. How do I change it?
Thanks
works fine inMSIE
if (thisForm.AttachmentCount.value==0) {
attachment=thisForm.all["Attachment"].value
if(attachment!="")
{
attachment=attachment.split(".")
if ((attachment[attachment.length-1])!="doc")
{alert("Please attach your minutes in MS Word format only")
thisForm.SubmissionCheck.value=""
return false}
}
}
The line--> attachment=thisForm.all["Attachment"].value does not work
in Firefox. I tried to change it to
attachment=thisForm.getElementById('Attachment').value but its ooes
work either. How do I change it?
Thanks