Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is the final working function which solved my issue and works in IE6, IE7, IE8, Chrome, Firefox, Safari and Opera.</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.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'); window.setTimeout(function () { winId.document.write( '&lt;script src="../js/tiny_mce/tiny_mce.js" type="text/javascript"&gt;&lt;/scr' + 'ipt&gt;\n' ); }, 10); 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'); window.setTimeout(function () { 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;"); //hiddenFrameHTML2 = hiddenFrameHTML2.replace(/&amp;amp;/gi, "&amp;").replace(/&amp;lt;/gi, "&lt;").replace(/&amp;gt;/gi, "&gt;"); winId.document.write(hiddenFrameHTML2); winId.document.write('&lt;/body&gt;&lt;/html&gt;\n'); winId.document.close(); }, 300); } </code></pre> <p>I got a lot of help from these questions:</p> <ul> <li><a href="https://stackoverflow.com/questions/2949234/formatting-this-javascript-line">Formatting this JavaScript Line</a></li> <li><a href="https://stackoverflow.com/questions/2950405/javascript-source-file-not-loading-in-ie8-popup">JavaScript source file not loading in IE8 Popup</a></li> </ul> <p>Thank you all.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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