
March 22, 2005
9:03 a.m.
Here's a simple example (attached). This doesn't work at all in IE 6. I think the issue is that document.innerHTML is not standard. I ended up writing a Javascript function that accepts the option text as lines: myfuncs = T.script(language="javascript")[ T.xml(""" function setOptions(selectID, optionsString) { select = document.getElementById(selectID) select.options.length = 0 optionList = optionsString.split(/\\n/) for (i=0; i < optionList.length; i++) { option = document.createElement("option") option.text = option.value = optionList[i] select.appendChild(option) } } """)] Dave Cook