Drop-down seemingly invisible to form
I have been asked to help out with code for our basketball web site.
This uses a single, generic HTML page which gets INCLUDEd by the ASP page. It then calls a Sub in the ASP code called BuildPage which creates the HTML and then uses Response.Write to show the page. Now, there is a drop-down (d/d) which displays season names (e.g. "1994/1995", "1995/1996") so that different results or statistics can be displayed. This d/d is "sent" to a SPAN (using '.innerHTML') contained in the HTML file. This is so that all the ASP pages can display different text in a table header. The problem seems to be that, no matter what I try, the d/d - although visible on the rendered page - doesn't seem to exist as far as the form is concerned. When the 'onChange' event occurs, it calls code that reloads the ASP with the requested season number. However, on selecting a season, I get "Object required: 'document.getElementById(...)'" for the line containing the d/d name.
A clue might be that the actual code appears on the page when viewed in 'View Source', although as I say, the d/d is rendered on the page OK.
I read elsewhere that, owing to a quirk in IE, rather than use 'innerHTML' I need to use 'createElement' and 'setAttribute' etc. to build the d/d. I went through the pain of building that (that code writes a new 'SCRIPT' section and then calls the dynamically-created Sub) but the end result is exactly the same.
I have attached what I hope are all the required files in 2 ZIPs (to bypass the 50K size restriction. The various flavours of the 'GetSeasonInfo' Sub in 'statistics.asp' will show you what I've tried.