Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I found my answer in another post, but essentially the problem was that Internet Explorer registers its iframe events differently than all other browsers.<br> Also a good post for you to look at - <a href="https://stackoverflow.com/questions/5220840/iframe-behaviour-of-onload-vs-addeventlistenerload">iframe behaviour of onload vs addEventListener(&#39;load&#39;)</a></p> <p>The code that I used to fix the problem is listed below. I hope this helps someone else that gets into a similar problem I had.</p> <p>I had to do a simple check on what browser was making the request and the 2 conditional blocks that you see below do the same thing, except the syntax is different for IE. Good 'ol IE. LoL.</p> <pre><code>//Microsoft Internet Explorer Browser - iFrame event register if (navigator.appName.indexOf("Microsoft") != -1) { var frame = getPortlet(); var prevPortletLoadEvent = frame.onload ? frame.onload : function () {}; var refresh = function() { prevPortletLoadEvent(); resizePortletContainer(); }; if(frame.attachEvent) frame.attachEvent('onload', refresh); else frame.addEventListener('load', refresh, false); } //All other major browsers - iFrame event register else { var frame = getPortlet(); var prevPortletLoadEvent = frame.onload ? frame.onload : function () {}; frame.onload = function () {prevPortletLoadEvent(); resizePortletContainer(); }; var prevPortletResizeEvent = frame.onresize ? frame.onresize : function () {}; var onresize = function () {prevPortletResizeEvent(); resizePortletContainer(); }; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload