seamless-polyfill
seamless-polyfill copied to clipboard
Multiple resizes?
It seems you can't do a second resize if you click a link within the frame? The second page also includes the script.
Eg. putting <a href="frame2.html" >Change source of first iframe</a>
inside frame.html
I think you are correct. The parent frame identifies children iframes by their URL (href) and when the child changes the URL, the parent cannot find it anymore.
Thanks
The url is being used to keep track of the iframes because I didn't want to require the user to provide anything in the markup they wouldn't require if the seamless attribute was being handled natively.
Your use case is something it should support of course. I'm going to think about how to address it because it makes me start to think about avoiding/debouncing unnecessary reflows, event listeners, and being able to dereference elements.
These things will make this significantly more complicated so I need to finish up writing the tests. I'll get back on that but any ideas with the above are appreciated.
Ok thanks, not too big of a deal
Is there a workaround for this issue? I assume the iframed content can't "tell" the parent, that is needs to re-run, right?