Note that there are some explanatory texts on larger screens.

plurals
  1. POIE8 Crashes Strangely on JavaScript Popup
    primarykey
    data
    text
    <p>I am facing a strange issue after the popup is created <code>onclick</code>. The popup opens up but hangs immediately on IE8 (works fine on all the other browsers including IE6). But on adding the <code>alert</code>box as show in the JavaScript code, the popup works fine.</p> <blockquote> <p>I am using <code>**https**</code> and not <code>**http**</code> and i feel popup is not able to load the JS file because of <code>SSL</code>.</p> </blockquote> <p>Here is the how i am generating the <code>onclick</code> event:</p> <pre><code>&lt;a id="forgotPasswordLink" href="#" onclick="openSupportPage();"&gt; Some Text &lt;/a&gt; </code></pre> <p>The <code>onclick</code> function is defined this way:</p> <pre><code> function openSupportPage() { var features = "width=700,height=400,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes"; var winId = window.open('', '', features); winId.focus(); winId.document.open(); winId.document.write('&lt;html&gt;&lt;head&gt;&lt;title&gt;' + document.title + '&lt;/title&gt;&lt;link rel="stylesheet" href="./css/default.css" type="text/css"&gt;\n'); var is_ie6 = ( window.external &amp;&amp; typeof window.XMLHttpRequest == "undefined"); alert(is_ie6);/*The JS include below*/ /*works in popup only with this alert box.*/ /*else IE8 Hangs*/ winId.document.write('&lt;script src="../js/tiny_mce/tiny_mce.js" type="text/javascript"&gt;Script_IE8&lt;/script&gt;\n'); winId.document.write('&lt;script type="text/javascript"&gt;\n'); winId.document.write('function inittextarea() {\n'); winId.document.write('tinyMCE.init({ \n'); winId.document.write('elements : "content",\n'); winId.document.write('theme : "advanced",\n'); winId.document.write('readonly : true,\n'); winId.document.write('mode : "exact",\n'); winId.document.write('theme : "advanced",\n'); winId.document.write('readonly : true,\n'); winId.document.write('setup : function(ed) {\n'); winId.document.write('ed.onInit.add(function() {\n'); winId.document.write('tinyMCE.activeEditor.execCommand("mceToggleVisualAid");\n'); winId.document.write('});\n'); winId.document.write('}\n'); winId.document.write('});}&lt;/script&gt;\n'); winId.document.write('&lt;/head&gt;&lt;body onload="inittextarea()"&gt;\n'); winId.document.write(' \n'); var hiddenFrameHTML = document.getElementById("HiddenFrame").innerHTML; hiddenFrameHTML = hiddenFrameHTML.replace(/&amp;amp;/gi, "&amp;"); hiddenFrameHTML = hiddenFrameHTML.replace(/&amp;lt;/gi, "&lt;"); hiddenFrameHTML = hiddenFrameHTML.replace(/&amp;gt;/gi, "&gt;"); winId.document.write(hiddenFrameHTML); winId.document.write('&lt;textarea id="content" rows="10" style="width:100%"&gt;\n'); winId.document.write(document.getElementById(top.document.forms[0].id + ":supportStuff").innerHTML); winId.document.write('&lt;/textArea&gt;\n'); var hiddenFrameHTML2 = document.getElementById("HiddenFrame2").innerHTML; hiddenFrameHTML2 = hiddenFrameHTML2.replace(/&amp;amp;/gi, "&amp;"); hiddenFrameHTML2 = hiddenFrameHTML2.replace(/&amp;lt;/gi, "&lt;"); hiddenFrameHTML2 = hiddenFrameHTML2.replace(/&amp;gt;/gi, "&gt;"); winId.document.write(hiddenFrameHTML2); winId.document.write('&lt;/body&gt;&lt;/html&gt;\n'); winId.document.close(); } </code></pre> <p>Please help me on this one. I could provide more information on this if needed.</p> <blockquote> <p>I have referred to these posts already:</p> <ul> <li><a href="https://stackoverflow.com/questions/776639/problem-of-import-js-file-in-https-page-in-ie8">Importing js file in https page using http URL in IE8</a></li> <li><a href="https://stackoverflow.com/questions/2597289/force-browser-modeie8-and-document-modeie8-standards">Force Browser Mode=IE8 and document mode=IE8 Standards</a></li> </ul> <p><strong>Additional Information</strong>:</p> <ul> <li><a href="http://img231.imageshack.us/img231/7190/72961203.png" rel="nofollow noreferrer">Screen shot of the page</a></li> <li><a href="http://pastebin.org/295861" rel="nofollow noreferrer">Rendered HTML</a></li> <li><a href="http://pastebin.org/296864" rel="nofollow noreferrer">Original JSPF</a></li> </ul> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

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