View Full Version : Problem with IE....

08-23-2007, 10:47 AM
I use following function (with dhtml windows):

<script language="javascript" type="text/javascript">
function loadPage()
parent.Window1.load("iframe", "myPage.php", "page")

and then call the function in the body tag as such:

<body onload="loadPage()">

However, it works just fine in Firefox, but in Internet Explorer it does only work if I use it with an button (onClick) and not with onload.....

08-23-2007, 02:49 PM
There is no window.load() method. Therefore, it is most likely a prototype function. In any case, it isn't explained in your post. Also:


aren't explained in the code form your post. And, since presumably an iframe is involved, it isn't clear as to which page's body tag you are talking about. Is it the one in the parent window, or the one in the iframe's src document? If it is the one in the iframe, the parent objects and strings referenced by the onload event may not all exist, or may not exist in the expected manner, at the time it is fired.

In short, more information is required:

Please post a link to the page on your site that contains the problematic script so we can check it out.