Closed
Bug 806400
Opened 12 years ago
Closed 12 years ago
Dynamically creating an iframe via JS does not refresh window.frames
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 170799
People
(Reporter: htcmaxx, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Build ID: 20121024073032
Steps to reproduce:
See file index.html. When you click the "refresh"-button, the iframe "ifr.html" is loaded. Inside the iframe, as variable is set to new Date().getSeconds(). This value is then returned by the function "getValue", called from index.html.
Actual results:
When you repeat clicking "refresh" and then "Get value...", you always get the same value. The Iframe seems to be cached.
Expected results:
The value should change as the seconds move on. The interesting thing is: when you add this line after the "....innerHTML = document.get.....", it works like expected:
window.frames['ifr'] = document.getElementById('ifr').contentWindow;
Comment 2•12 years ago
|
||
you should add the following to refreshIframe
delete window.frames["ifr"];
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•