Okay, I have code here that works perfectly in Netscape 6, but not in IE. I put in an alert to try to figure out what was going on, and then it started working. The kicker is, that it only works in IE when the alert is there. Without it, the page submits with the last element selected, instead of all of them, like it's supposed to.
function selectAll() {
document.editBrowser.browsers.multiple = true;
var count = 0;
while(document.editBrowser.browsers.options[count]) {
document.editBrowser.browsers.options[count].selected = true;
count = count + 1;
alert("This works in Netscape perfectly,\nbut as soon as I take out this alert, it stops working in IE.");
}
}
Any insights would be most appreciated.
function selectAll() {
document.editBrowser.browsers.multiple = true;
var count = 0;
while(document.editBrowser.browsers.options[count]) {
document.editBrowser.browsers.options[count].selected = true;
count = count + 1;
alert("This works in Netscape perfectly,\nbut as soon as I take out this alert, it stops working in IE.");
}
}
Any insights would be most appreciated.