davidjbradshaw/iframe-resizer

Issue w/ IE 9 and IE 8

mickotia opened this issue · 5 comments

David,

Thanks for your detailed explanation and examples of how this works. I have been working on dynamically applying height and width to a cross-domain iframe for about a week unsuccessfully until I read your article. I have everything up and running correctly on my staging site and host site ( using Firefox, Chrome, and IE 10 ), however I notice that this is not working for me on IE 9 and IE 8. The content loads in a smaller frame at the top of the page and does not expand or adjust dynamically.

How you experienced this issue before, or perhaps am I applying something incorrectly.

Thanks,
Mike K.

This should be fixed now, two silly bugs with IE. It was refusing to run the JS, because it didn't like the mime-type application/javascript. Now changed to text/JavaScript in the example file.

The second issue is that it didn't like the late setup on the 'settings' object. Changed var setting; to var settings = {};

Can you give it a try and let me know if it now works.

Dave.

I am not in the office today but will be looking into it tomorrow.  Thanks:

On Sun, Sep 1, 2013 at 7:40 PM, David J. Bradshaw
notifications@github.com wrote:

This should be fixed now, two silly bugs with IE. It was refusing to run the JS, because it didn't like the mime-type application/javascript. Now changed to text/JavaScript in the example file.
The second issue is that it didn't like the late setup on the 'settings' object. Changed var setting; to var settings = {};
Can you give it a try and let me know if it now works.

Dave.

Reply to this email directly or view it on GitHub:
#2 (comment)

Just completed a successful test of your fix. Thank you for you help with this.

Hi, I am facing the same issue. In IE the Iframe is not loading completely. Please provide a solution.

I'm available to hirer if you want me to work on your code base.

If you have a new bug, then you need to follow these guidelines to report it as a new issue. https://github.com/davidjbradshaw/iframe-resizer/blob/master/CONTRIBUTING.md