Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 and IE9: Unexpected message received #55

Closed
jonnywhite opened this issue May 28, 2014 · 6 comments
Closed

IE8 and IE9: Unexpected message received #55

jonnywhite opened this issue May 28, 2014 · 6 comments
Labels

Comments

@jonnywhite
Copy link

Hi

I'm getting the following error in IE8 and IE9.

SCRIPT5022: Unexpected message received from: http://domain.com for iFrameResizer0. Message was: [iFrameSizer]iFrameResizer0:180:983:init

The iframe url and the script url are the same, and I've also set checkOrigin to false.

Here's how I'm initialising it:
$('#wrapper iframe').iFrameResize([{checkOrigin: false, heightCalculationMethod: "max"}]);

I'm on v2.4.6 - 2014-05-08.

Any suggestions as to what I might be doing wrong?

Many thanks
Jonny

@davidjbradshaw
Copy link
Owner

Can you try v2.4.8 and send me a link to take a look at with the logging turned on.

@jonnywhite
Copy link
Author

Yep, have done that. See below. There are no additional log messages after
enabling the log option.

win7_ie_9 0

On 28 May 2014 12:46, David J. Bradshaw notifications@github.com wrote:

Can you try v2.4.8 and send me a link to take a look at with the logging
turned on.


Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-44396097
.

@davidjbradshaw
Copy link
Owner

Can you cut'n'paste the log. You should be seeing lots of log messages if you add log:true to the options.

@davidjbradshaw
Copy link
Owner

Oh image just came through. Seems it gets slowly cached.

@jonnywhite
Copy link
Author

It turns out it was the way I was setting options:
$('#wrapper iframe').iFrameResize([{checkOrigin: false, heightCalculationMethod: "max"}]);

I shouldn't have the square brackets:
$('#wrapper iframe').iFrameResize({checkOrigin: false, heightCalculationMethod: "max"});

Thanks for your help, and this great tool!

@davidjbradshaw
Copy link
Owner

Glad it got sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants