... until the collector arrives ...

This "blog" is really just a scratchpad of mine. There is not much of general interest here. Most of the content is scribbled down "live" as I discover things I want to remember. I rarely go back to correct mistakes in older entries. You have been warned :)

2004-05-14

JScript

I was struggling with an ASP page, trying to get all of the request variables.  I was using JScript, of course, since I cannot stand to use VBScript.  As it turns out, one needs to take special measures when attempting to access collections in JScript.  The pattern looks like this:

for (var key = new Enumerator(Request.queryString); !key.atEnd(); key.moveNext()) {
    doSomethingWith(key.item());
}

Blog Archive