Code not working in IE6

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Torch

    Code not working in IE6

    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.function name. IE6 fails with a JScript runtime error "Object doesnt
    support this property or method". I have tried changing parent.function name
    to the more absolute addressing top.functionnam e but this doesnt work
    either.

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

    Steve


  • Martin Honnen

    #2
    Re: Code not working in IE6



    Torch wrote:
    [color=blue]
    > 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.function name. IE6 fails with a JScript runtime error "Object doesnt
    > support this property or method".[/color]

    Windows XP Service Pack 2 introduced some fixes/changes for IE 6 that
    might cause cross frame scripting to behave differently, see
    <http://www.microsoft.c om/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#E GAA>
    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

    Comment

    • Martin Kurz

      #3
      Re: Code not working in IE6

      Torch schrieb:[color=blue]
      > 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.function name. IE6 fails with a JScript runtime error "Object doesnt
      > support this property or method". I have tried changing parent.function name
      > to the more absolute addressing top.functionnam e but this doesnt work
      > either.
      >
      > Has anyone else come across this? is it a bug or a new feature?[/color]

      Depens on the view :=) AFAIK, the security settings have changed so frames can
      only communicate with each other when on the same host. Maybe, it's a bug in
      your script. Can you give an example?

      Comment

      • Torch

        #4
        Re: Code not working in IE6


        "Martin Honnen" <mahotrash@yaho o.de> wrote in message
        news:432ad451$0 $27542$9b4e6d93 @newsread4.arco r-online.net...[color=blue]
        >
        >
        > Torch wrote:
        >[color=green]
        >> 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.function name. IE6 fails with a JScript runtime
        >> error "Object doesnt support this property or method".[/color]
        >
        > Windows XP Service Pack 2 introduced some fixes/changes for IE 6 that
        > might cause cross frame scripting to behave differently, see
        > <http://www.microsoft.c om/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#E GAA>
        > 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
        > http://JavaScript.FAQTs.com/[/color]

        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.parentfu nc() 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
        digging

        Thanks
        Steve[color=blue]
        >[/color]


        Comment

        Working...