Hi guys, got a questsion again I hav createt an instance of the
window-object
after creating im doing the following
displayWin: function(){
var loader = document.createElement('div');
loader.setAttribute( 'id','loader');
this.win2.setContent('loader');
this.win2.setDestroyOnClose();
this.win2.showCenter();
}
thats working fine, now i want to change the content
But if im using this again:
loadContentInWin:function(){
this.win2.getContent().innerHTML = null;
var div2 = document.createElement("div");
div2.setAttribute( 'id','rar');
div2.innerHTML='Testlink';
div2.Var = 'http://www.test.de';
div2.onclick = this.openLink;
this.win2.setContent('rar');
}
Firebug throws an exception
Unable to find element 'rar' in DOM' when calling method:
[nsIOnReadyStateChangeHandler::handleEvent]"
does anyone see a problem in my code?
Cheers Stefan
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com