#76 closed defect (fixed)
IE Problems with setAttributes
Reported by: | sven | Owned by: | christoph |
---|---|---|---|
Priority: | major | Milestone: | 2.4.2 and older releases |
Component: | administration | Version: | 2.4.1 |
Keywords: | Cc: |
Description ¶
IE can´t handle the function setAttributes. You can find an example in the module addWMSfromfilteredList_ajax in line 159:
function createDiv(text, onClick) {
var divNode = document.createElement("div"); divNode.style.cursor = "pointer";
divNode.setAttributes("onclick", onclick); old syntax
new syntax
if(document.all){
divNode.onclick = function() {var x = new Function (onClick); x(); };
} else{
divNode.setAttribute("onclick", onClick);
} divNode.innerHTML = text; return divNode;
}
Change History (2)
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
Milestone: | → 2.4.2 and older releases |
---|
Note:
See TracTickets
for help on using tickets.