Code not working in IE6

Discussion in 'Javascript' started by Torch, Sep 16, 2005.

  1. Torch

    Torch Guest

    I have some javascript that has been working for a year - I have just
    upgraded to IE6 and now its stopped working. The page consists of a parent
    window containing some functions and an iframe with other functions. One of
    the functions in the iframe calls a function in the parent window with
    parent.functionname. IE6 fails with a JScript runtime error "Object doesnt
    support this property or method". I have tried changing parent.functionname
    to the more absolute addressing top.functionname but this doesnt work

    Has anyone else come across this? is it a bug or a new feature?

    Torch, Sep 16, 2005
    1. Advertisements

  2. Windows XP Service Pack 2 introduced some fixes/changes for IE 6 that
    might cause cross frame scripting to behave differently, see
    for Microsoft's description.

    Your description above is too short to assess what is happening in your
    case, post a URL where to error occurs and describe to us what has to be
    done to trigger the error.
    Martin Honnen, Sep 16, 2005
    1. Advertisements

  3. Torch

    Torch Guest

    I cant give you access to page with the problem - the application currently
    sits on a secure intranet - its a servlet based system that builds a
    javascript webapp dynamically from a database spec on the server
    The app builds browser windows consisting of some parent html with menu
    functions etc and an iframe that shows a list of rows from a table - the
    windows are linked so that as the user selects a record in one window -
    other child windows refresh their table rows in their respective iframes
    I have tried to strip the problem down to its core to show you but in doing
    so have discovered that the error is actually caused by something else.
    It seems that something is destroying the parent html so that when the
    iframe function does the parent.parentfunc() call it no longer exists and IE
    reports the Object doesnt
    support this property or method". The reason I suspected IE6 is that the
    app has been running for a year without problem. The problem appeared the
    first time it was run after the upgrade to IE6. I will have to do some more

    Torch, Sep 16, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.