I work for a consulting company. I am doing my development at our main office and was given a laptop with Visual Studio 2005 & IE7 installed on it. I VPN into the the client's network to put the files on a test web server, then they start testing. They've been logging a lot of defects that the listbox server controls are not working properly. One specific issue I've witnessed first hand is that in IE6 when adding items to the listbox in javascript, what are supposed to be whitespaces are showing as % signs. Everything appears normal in IE7. Another issue with IE6 is that click events don't seem to register the first time. Sometimes takes multiple clicks before the onclick event is kicked off.
Let's stick to the first issue for now. Here's my javascript code:
function AddOption(s) {
var lstAdd = document.getElementById('ctl00_cphDetail_lstAdd');
var opt = document.createElement('option');
opt.text = s;
opt.value = s;
if(lstAdd.length == 0) {
lstAdd.add(opt);
} else {
var b = true;
var len = lstAdd.length;
for(var i = 0; i <= len - 1; i++) {
if(lstAdd.options[i].text == opt.text) {
b = false;
}
}
if(b) {
lstAdd.add(opt);
}
}
}
Also, are there any online resources for coding & troubleshooting javascripting differences for different IE browser versions?