IE8 and IE9: Unexpected message received
jonnywhite opened this issue · comments
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
Can you try v2.4.8 and send me a link to take a look at with the logging turned on.
Yep, have done that. See below. There are no additional log messages after
enabling the log option.
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
.
Can you cut'n'paste the log. You should be seeing lots of log messages if you add log:true
to the options.
Oh image just came through. Seems it gets slowly cached.
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!
Glad it got sorted.