Code: Select all
window.addEvent('domready', function() {
declareProps();
for(i=0;i<numProps;i++){
tmpProp = "prop" + (i+1); // sets which div should slide in
tmpSelector = "ctl00_main_propSelector_"+(i); // sets which radiobutton to add event handler to
//alert("i = " +i+ "\ntmpProp = " +tmpProp+ "\ntmpSelector = " + tmpSelector+ ".")
$(tmpSelector).addEvent('mouseup', function(e){
e.stop();
for(j=0;j<document.aspnetForm.ctl00$main$propSelector.length;j++){ // loop through all properties
if(document.aspnetForm.ctl00$main$propSelector[j].checked){
alert("Property " +(j+1)+ " was checked.")
}
}
});
}
});
According to my google-fu, the way IE handles it is via the "attachEvent" command, and instead of 'mouseup', it would be 'onmouseup'. The fun part is, it doesn't work. I don't get any errors, it just doesn't work. Ideas on how to attach an event like the above in ie? The obvious answer to my problem is to test the solution first like http://snipplr.com/view/3116/cross-brow ... -listener/ but again, doesn't work, no errors.