waxical
waxical

Reputation: 3896

IE: jQuery loaded content with iFrame - iFrame does not show

I have a page, that loads in content from another page, with jQuery. Like so:-

$('#link_help').live('click', function() {
    $('#helpBox').load('content.php?load=helpBox');
});

This content includes some static HTML and an iFrame. This loads perfectly fine in Chrome and Firefox.

However, Internet Explorer (testing on 9) is loading the HTML content, but not the iFrame src. I can change the colour of the iframe, play with it. But, I can not use or change the src.

Any ideas?

Upvotes: 0

Views: 974

Answers (1)

waxical
waxical

Reputation: 3896

Right. Incase anyone has this problem. Check whether you're on an HTTPS connection.

This was my problem. By default, IE9 does not allow iframes to be loaded into HTTPS environment, which are HTTP. I've now requested HTTPS and it's fixed.

Upvotes: 1

Related Questions