E
equalium
Hello I am creating div elements on the fly with javascript:
....
this.closeButton = document.createElement('div');
this.closeButton.setAttribute('id', this.name+ 'Close');
this.closeButton.setAttribute('class', 'closeButton');
this.closeButton.setAttribute('onclick', "anyFunction()");
this.closeButton.className="closeButton"
me.windowControls.appendChild(me.closeButton);
....
My first problem was that elements didn't reflect the class attributes
in IE although in Firefox worked fine. I solved this with:
"this.closeButton.className="closeButton"".
But now I have the same problem with the "onclick" event. In Firefox
works OK but IE doesnt detect the click although I can see that the
"outputHTML" is OK.
Does anybody know how to solve this?
....
this.closeButton = document.createElement('div');
this.closeButton.setAttribute('id', this.name+ 'Close');
this.closeButton.setAttribute('class', 'closeButton');
this.closeButton.setAttribute('onclick', "anyFunction()");
this.closeButton.className="closeButton"
me.windowControls.appendChild(me.closeButton);
....
My first problem was that elements didn't reflect the class attributes
in IE although in Firefox worked fine. I solved this with:
"this.closeButton.className="closeButton"".
But now I have the same problem with the "onclick" event. In Firefox
works OK but IE doesnt detect the click although I can see that the
"outputHTML" is OK.
Does anybody know how to solve this?