Iframe-resizer: Ignored iFrame, already setup.

Created on 29 Feb 2016  Â·  6Comments  Â·  Source: davidjbradshaw/iframe-resizer

Hello,

The page has 2 buttons, first button create iframe, print own iframe, delete iframe, after this operation i get warnings(see bottom of message)
and iframe resizer stops working. when i click second buttton, modal window is opening, but iframe resizer does not resizing iframe inside modal window.

when i don't printing page, iframe resizer works well.
I think it could happening because print button create and delete own iframe. How can i fix this?

(2)iframeResizer.min.js:8 [iFrameSizer][Host page: iFrameResizer0] Ignored iFrame, already setup.
iframeResizer.min.js:8 [iFrameSizer][Host page: fb_xdm_frame_http] Ignored iFrame, already setup.
iframeResizer.min.js:8 [iFrameSizer][Host page: fb_xdm_frame_https] Ignored iFrame, already setup

All 6 comments

Hello david,

Are we supposed to "close" the iframe?

If you are adding and removing iFrames from the page then it is best to close them. If you are reusing the same IDs then you must close them.

So basically, my iframeResize() call is just: iframeResize(). I don't have any parameters in my iframeResize call from the main page.
Would the iframe page still be ok to call the close function? If not, could you point me in the right direction on where I am going wrong?

This is what my setup looks like:
Main Page:
iFrameResize();

iFrame Page:

The issue is about the ID tag on the iFrame element, if you remove an
iFrame and then reuse the ID on another iFrame you create a conflict.
Either don’t place an ID on the iFrame, or use unique ones.

If you have to reuse then follow the link above.

On Wed, Nov 23, 2016 at 9:52 AM, ikOrbis [email protected] wrote:

So basically, my iframeResize() call is just: _iframeResize()_. I don't
have any parameters in my iframeResize call from the main page.
Would the iframe page still be ok to call the close function? If not,
could you point me in the right direction on where I am going wrong?

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/davidjbradshaw/iframe-resizer/issues/327#issuecomment-262471518,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkHEhMFfu6AqYVNij2saLXyqCksybZcks5rBAzbgaJpZM4HlTJJ
.

David J. Bradshaw )'( [email protected]

Hey Guys,

But we can use class instead of ID.

I had the same issue and fixed it by replacing ID with Class.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcodev1 picture mcodev1  Â·  9Comments

TarsisDragomir picture TarsisDragomir  Â·  5Comments

lukashanssondn picture lukashanssondn  Â·  7Comments

Testato picture Testato  Â·  6Comments

wei2go picture wei2go  Â·  3Comments