user9072053
user9072053

Reputation: 21

Iframe Resizer - works on some pages but not others

I've tried all the troubleshooting suggestions, and I've got iFrameResizer working on other sites without any issues, but it's snagging on this one and I can't fathom out why. Weirdly, it works on the details page, but not on the listing page. Logging returns the

"hasn't responded in 5 seconds" message.

I've also tried all the various triggers ('max' etc.) none of them make a difference.

Example page where it doesn't work: http://www.homesinfocus.co.uk/properties-to-let/

But on the details page, it does work: http://www.homesinfocus.co.uk/property-details-let/?ID=790&LB=Let

I've made sure all the iFrames have unique IDs, and the listing page works okay for other sites, just can't see where the issue is with this one.

Any pointers would be much appreciated.

Upvotes: 1

Views: 569

Answers (2)

user9072053
user9072053

Reputation: 21

David, thanks for your help. CheckOrigin seems to have fixed it.

Seems to work fine with the following:

<script>    
$(window).on('load', function (e) {
   $('iframe').iFrameResize({checkOrigin:false});
});
</script>

Upvotes: 1

David Bradshaw
David Bradshaw

Reputation: 13097

The most common reason for that, is that the iframe hasn't loaded it's js file.

Also check that your using the very latest version, as the error message gives a bit more detail.

Upvotes: 0

Related Questions