ie7.js and framesets

4 views
Skip to first unread message

Peter Krefting

unread,
Jul 21, 2008, 3:33:10 AM7/21/08
to ie7...@googlegroups.com
Hi!

I am having a problem with ie7.js in a document that is enclosed in
frames. When ie7.js gets evaluated, for some reason document.body is
undefined, and thus the script later fails with a "v is null or
undefined". I've seen that the problem has been reported to the issue
tracker twice, but there has been no resolution so far.

When I load the offending page without a surrounding frameset, it
displays just fine, applying the CSS fixes that I need ie7.js for.

Does anyone have any idea on how to fix it? I tried changing references
to v.something to check if v is defined, but so far I have not been
able to make the script work. I also tried taking the latest version
from Subversion, but that didn't help.

Can't provide a URL at the moment since it is a document generated
internally by a system I am working on. I can try making a testcase if
necessary.

--
\\// Peter - http://www.softwolves.pp.se/

Eric

unread,
Jul 31, 2008, 3:35:12 PM7/31/08
to ie7-js
This is happening to me as well. It is happening when I have IE8 set
to load both in a main document and in a subsequent iframe.

I am not a javascript person. But here is what I was able to
determine:

It has to do with the w=document.body at the very end of the IE8 code.

Placing a js alert message in the parent document at the end of the
page caused the issue to go away, but I had only placed the alert
there to warn viewers I was working on the page. Meaning, this is not
a solution.

My present solution, remove IE8 from the iframe's header, but leave it
in the parent header. I haven't yet been able to thoroughly test this
to see if it results in other things that IE8 would normally fix
becoming "broken" again within the iframe.

Hope this helps.

Eric
Reply all
Reply to author
Forward
0 new messages