Closed Bug 243992 Opened 21 years ago Closed 21 years ago

Dynamically created iframe containing frames refreshes when unhidden

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 170588

People

(Reporter: timb, Unassigned)

References

()

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko/20040514 I create iframes using appendChild depending on what is clicked in the menu. I assign a name and an id an a className to the newly created iframe, then I set its src. If I click another item in the menu, I check to see if there is already an iframe with that name. If yes, I hide (display='none') all the other iframes and just unhide (display='block') the current one. This works fine if the content of the iframe does not itself contain frames. Problem: if the iframe src does contain frames, then the act of unhiding the hidden iframe causes the iframe to reload the originally assigned src. Reproducible: Always Steps to Reproduce: 1. Go to test case. 2. Click on CBDC. iframe should open displaying a site with frames. 3. Go somewhere else within the CBDC site. 4. Click parrysound.com. CBDC frame should hide, and new iframe come up with a site with no frames. 5. Now click CBDC again. You are back at the front page. Actual Results: I went back to the originally assigned src page, even though all I did was change the display properties of the iframe. Expected Results: This minimized part of a site administration control panel. You should be able to go to a site in an iframe, do some stuff, go to another site, do some stuff, then come back to the first site and pick up where you left off. The javascript function will not work at all in IE because you cannot myDiv.appendChild(my_iframe) in IE. Same thing happens in Firefox 0.8 and Netscape 7
Fixed in 1.8 builds. The fix won't end up in 1.7, though. *** This bug has been marked as a duplicate of 170588 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.