Giter Club home page Giter Club logo

Comments (14)

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Can you add the console log output.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

I've just double checked it and can not repro this problem. Can you please send me a link.

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

I tell you what I have done.
I extracted the archieve.
I opened the index.html present in the examples folder and change this:
iframe src="frame.content.html" width="100%" scrolling="no"> iframe
to this
iframe src="http://www.mydomain.org/frame.content.html" width="100%" scrolling="no"> iframe

obviously mydomain.org contains the frame.content.html

when I open the index.html on my localhost using IE, no button resize the iframe.

THANKS FOR THE ANSWER!!!!!!!

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

I noticed that the size(250) link does not work while the toggle works.
How can I call the size(250) using jquery instead of the javascript that does not work on IE?

Thanks.

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Hi,

IE doesn't allow postMesaage, if one page is on the local filesystem. You need to remotely host both parts.

To get the manual sizing to work in IE, you have to disable the interval timer. You can do this by setting it to zero. Or set the autoResize option to false.

D.

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

Hi
I inserted this link on the iframe:
a href='http://mentadent.it' onclick="$('body:eq(0)').height(2500);">Set body to 2500 /a

in this way it works on IE9.
How can I set the interval to 0?

Thanks!!!

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

$('iframe').iFrameResize([{options}]);

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

$('iframe').iFrameResize([{interval:0}]);

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

I haven't understood how to use this code.
the only way I can resize the iframe is putting this in onclick:
$('body:eq(0)').height(SIZE);

is there a way to force interval in some other way?

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

Parent page.

$('iframe').iFrameResize({
    autoResize:false,
    enablePublicMethods:true
});

iframe

if ('parentIFrame' in window) {
    parentIFrame.size(250);
}

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

you rock, thanks ;)

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

Hi,
I unsterred the thread.
I put the if ('parentIFrame' in window) {
parentIFrame.size(250);
} in production and firebug gives me this error resulting in no resize:

Error: Unexpected message received from: http://IFRAMESERVERIP:8889 for myframe. Message was: [iFrameSizer]myframe:40:986:init

any help could be much appreciated

from iframe-resizer.

sblantipodi avatar sblantipodi commented on August 19, 2024

tomorrow I will try to set:
checkOrigin:false

hope that this will solve the problem

from iframe-resizer.

davidjbradshaw avatar davidjbradshaw commented on August 19, 2024

That looks like you have the parent page script in th the iFrame.

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.