Results 1 to 2 of 2

Thread: Problem with IE....

  1. #1
    Join Date
    Aug 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with IE....

    I use following function (with dhtml windows):

    Code:
    <script language="javascript" type="text/javascript">
    function loadPage()
    {
    parent.Window1.load("iframe", "myPage.php", "page")
    }
    </script>
    and then call the function in the body tag as such:

    Code:
    <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.....

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    • Window1
    • "iframe"
    • "page"


    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •