|
JScript ASP "for in loop" problem... (not .NET)
I am trying to loop through a Request.Form collection using JScript ASP:
for (objItem in Request.Form) {
counter++;
Response.Write(counter);
try {
//STUFF HERE...
} catch(e) {
Response.Write(e) & "<br>"
}
}
Nothing happens when I run this code. No errors or results. I converted this from my VB version that looks like this.
For each objItem in Request.Form
counter = counter + 1
'STUFF HERE
On Error Resume Next
If Err.number == 0 then
'STUFF HERE
else
Response.Write Err.Description & "<br>"
end if
Next
This works fine. I assume that my objItem in the JScript for in loop is the problem area?
Joe
|