Giter Club home page Giter Club logo

Comments (4)

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Hi, the remote site, would need to include a link to a JavaScript file.

It is not possible to do what you want without being able to run JS in both the host and iFrame pages, due to security restrictions in the browser.

If you can not add code to the remote site, your best option is to contact the remote site and ask them to support this project.

from iframe-resizer.

dazzlingbull avatar dazzlingbull commented on July 19, 2024

ok, thanks for that, this is why I cannot get it working ;) A morning has gone on this... will chalk it up as not possible FTTB - Thanks for quick reply. GB

from iframe-resizer.

xSeekTruthx avatar xSeekTruthx commented on July 19, 2024

@davidjbradshaw We have the same issue, however, we have access to the page, and can add script information to the HTML of the page. We do not have file access on the OtherDomain. Can this be done? Already tried copying entire "iframeSizer.contentWindow.min.js" into the page between <script> tags but still receive error in java console asking...

[iFrameSizer][Host page: myIframe1] IFrame has not responded within 5 seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.

How can we make it load correctly by embedding it into the HTML?

Thank you

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on July 19, 2024

Just add a script link to the iframe that loads the contentWindow script from your domain

from iframe-resizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.