Hello,
To set the selected index of my dynamic list, I tried to use:
// Runs on load of page and after submit work is done
window.onload = function(){
var sSel = document.getElementById("server");
sSel.selectedIndex = 0;
// the next call that creates a dynamic listbox fails. It does not
// see anything called server either in the selOptions() function.
org.cote.js.xml.getXml('/apps/empower/authorize.xml',selOptions,1);
}
It does not seem to understand what document.getElementById("server") is set to for some reason. It gives some message like null is null when I try to do the sSel.selectedIndex = 0.
However, if I add to the header a meta (I removed the open and closing of the meta so it would display here):
meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"
It sets the value for sSel just fine. What changed with ie8 that is making this fail?