Hi,
I am struggling to find support for the javascript with the ASP object. All notes on the supporting documentation are in VBSCRIPT:
Does anyone know how I would write the following code in ASP javascript?
CODE AS FOLLOWS:
For Each File in Upload.Files
If File.ImageType <> "GIF" and File.ImageType <> "JPG" Then
errDesc = "GIF or JPG files only please!"
file.Delete
imgErr = true
Exit For
End If
If File.ImageWidth > 150 Then
errDesc = "Image width cannot exceed 150 pixels."
file.Delete
imgErr = true
Exit For
End If
If File.ImageHeight > 200 Then
errDesc = "Image height cannot exceed 200 pixels."
file.Delete
imgErr = true
Exit For
End If
Next
I am struggling to find support for the javascript with the ASP object. All notes on the supporting documentation are in VBSCRIPT:
Does anyone know how I would write the following code in ASP javascript?
CODE AS FOLLOWS:
For Each File in Upload.Files
If File.ImageType <> "GIF" and File.ImageType <> "JPG" Then
errDesc = "GIF or JPG files only please!"
file.Delete
imgErr = true
Exit For
End If
If File.ImageWidth > 150 Then
errDesc = "Image width cannot exceed 150 pixels."
file.Delete
imgErr = true
Exit For
End If
If File.ImageHeight > 200 Then
errDesc = "Image height cannot exceed 200 pixels."
file.Delete
imgErr = true
Exit For
End If
Next