Code not working in IE6

T

Torch

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
either.

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

Steve
 
M

Martin Honnen

Torch said:
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".

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.com/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#EGAA>
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.
 
T

Torch

Martin Honnen said:
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.com/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#EGAA>
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.

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
digging

Thanks
Steve
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top