>Why not simply:
If you look in the ASP page, that's pretty much exactly what it does, except in VBS, rather than JS. What you see in STATS.HTM is the code which gets "rendered" after the ASP has built it and the client has run it. Again, I have to wonder how it is that the d/d appears on the rendered page but none of the HTML that created it appears when you 'View Source'!
>why you can't do this in the ASP code.
I can. And did, using the 'InnerHTML property, but the onChange event didn't seem to ever fire. I read - in several posts on other fora - that this is yet another IE quirk and that, to get it to work, you had to use the convoluted route we now have.
If I move the d/d so that it appears along with the rest of the HTML - i.e. not in the "header" row (where it says 'Statistic for Season [d/d]') - it works just fine and this is how it used to work when the site was built using an HTML "container" file and a companion ASP file to populate the HTML page. The author then decided to consolidate the twelve HTML pages into one, a worthy enough desire.
So my choices are:
- reposition the d/d and "draw" it in ASP
- abandon the whole thing
We don't really want to do change the position, because we'd end up with an odd, wasted line on the rendered page and quite a bit of work in the ASP re-doing the tables (I know, I know!!). As for abandonment, well, I'm not one to give up so easily. I remember being told that one couldn't script the link-ordering of Group Policy objects. Ha!