Note that there are some explanatory texts on larger screens.

plurals
  1. POstring termination problem
    primarykey
    data
    text
    <p>When I try to run this script i get error in IE:</p> <pre><code>Unterminated string constant &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;script language="javascript" type="text/javascript"&gt; var designDocumen; var designEditor; Initialize(); function Initialize() { designEditor = $get('myframe'); designDocument = this.designEditor.contentWindow.document; var outerHTML = "&lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'&gt;" + "&lt;html xmlns='http://www.w3.org/1999/xhtml'&gt;" + "&lt;head&gt;" + "&lt;title&gt;Design Editor Frame&lt;/title&gt;" + "&lt;style type='text/css'&gt;" + "body {background-color:Green;}"+ "&lt;/style&gt;" + "&lt;/head&gt;" + "&lt;body&gt;&lt;/body&gt;" + "&lt;/html&gt;"; designDocument.open("text/html", "replace"); designDocument.write(outerHTML); designDocument.close(); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;iframe id="myframe" height="500px" width="500px"&gt; &lt;/iframe&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>How do I solve this? How to correct this string?</p> <p><strong>UPDATE:</strong> The problem is with the line:</p> <blockquote> <p><code>"&lt;title&gt;Design Editor Frame&lt;/title&gt;"</code></p> </blockquote> <p>if i remove it, it works!</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.
 

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