D
Daniel Loose
Hi,
I am showing a document that contains an element with the id ID in a
newly created popup. The element ID shall get some certain style then
(in my case, I want to change display from none to inline, in order to
show ID; but that's not the point/the problem here) For that purpose,
I define an onload handler after creating the popup. That is we have:
MeinFenster = window.open(url, "width=700");
MeinFenster.focus();
MeinFenster.onload=function(){
MeinFenster.document.getElementById('ID').style.display =
'inline';
}
This works fine in FF. *But not in IE7*: Nothing happens there at all,
as if there would be no onload handler defined. No error message, no
alert when I replace the style command with a debug alert, nothing.
What am I doing wrong? How can I get that to work also in IE? Thanx a
ton! D.
PS Note, without onload handler it cannot work at all since ID does
not yet exist directly after opening the popup.
*************
Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]
If you wish to email me, please use newsreply at wuwei minus webservices dot de
I am showing a document that contains an element with the id ID in a
newly created popup. The element ID shall get some certain style then
(in my case, I want to change display from none to inline, in order to
show ID; but that's not the point/the problem here) For that purpose,
I define an onload handler after creating the popup. That is we have:
MeinFenster = window.open(url, "width=700");
MeinFenster.focus();
MeinFenster.onload=function(){
MeinFenster.document.getElementById('ID').style.display =
'inline';
}
This works fine in FF. *But not in IE7*: Nothing happens there at all,
as if there would be no onload handler defined. No error message, no
alert when I replace the style command with a debug alert, nothing.
What am I doing wrong? How can I get that to work also in IE? Thanx a
ton! D.
PS Note, without onload handler it cannot work at all since ID does
not yet exist directly after opening the popup.
*************
Marty - it's perfect! You're just not thinking fourth dimensionally!
[Emmett "Doc" Brown]
If you wish to email me, please use newsreply at wuwei minus webservices dot de