troubleshooting Question

Firefox draws iframe inside iframe

Avatar of d2kagw
d2kagw asked on
7 Comments1 Solution312 ViewsLast Modified:
Hi There,

I have this strange problem on my hands.
Theres this script that I have writen, and at the moment, it works fine in IE, but I need to make it work for FireFox too...
Now what happens is when the user clicks on a link within a iFrame, the iframes content is changed[just info from a JS array] by a javascript function sitting in the parent...

In IE this works fine, the content is cleared and re-writen with no errors, however in FireFox, the whole page is reloaded in the iframe, so theres a iframe in the iframe with the initial content...

this is a snippet of the code im using:

            this.navArea.write( this.writer );
            this.navArea.close( );

where this.navArea = getElementById(myiFrame) [registering this A-OK]
And this.writer is the content to be writen...

now, I have no objections to having to write two versions of this code if necessary [a IE and FireFox version] and I am also aware that generally the .write() function causes a page refresh, but its just strange that it reloads the entire page within itself, where the iframe doesn't start with a src at all... its all dynamically generated once the page has loaded....

Any Ideas?
Systems architect
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros