<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1041242" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1041242</link>
    <description></description>
    <language>en</language>
          <item>
    <title>ok so all my clientside</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1231215</link>
    <description> &lt;p&gt;ok so all my clientside methods are neutered&lt;/p&gt;
&lt;p&gt;what about PHP? &lt;a href=&quot;http://reference.lassosoft.com/Reference.LassoApp?lassoscript/default&quot;&gt;Lassoscript&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;(I actually work sometimes on a Lassoscript site)&lt;/p&gt;
&lt;p&gt;and I found &lt;a href=&quot;http://developer.mozilla.org/en/docs/DOM:document.createElement&quot;&gt;this&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Gecko implementation of createElement doesn&#039;t conform to the DOM spec for XUL and XHTML documents: localName and namespaceURI are not set to null on the created element.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Mon, 30 Jun 2008 21:46:33 +0000</pubDate>
 <dc:creator>netsperience</dc:creator>
 <guid isPermaLink="false">comment 1231215 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>DOM methods include</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1231193</link>
    <description> &lt;p&gt;DOM methods include document.createElement, node.appendChild, and so on.&lt;/p&gt;
&lt;p&gt;You can&#039;t use innerHTML when serving XHTML as an XML MIME type either. Sorry.&lt;/p&gt;
 </description>
     <pubDate>Mon, 30 Jun 2008 04:25:07 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1231193 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>aha
the W3C recommends that</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1231107</link>
    <description> &lt;p&gt;aha&lt;/p&gt;
&lt;p&gt;the W3C recommends that the dynamic scripting achieved in HTML with document/write() be managed with DOM in XHTML&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite&quot; title=&quot;http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite&quot;&gt;http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I suppose this means changing innerHTML values on the fly?&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Jun 2008 00:51:26 +0000</pubDate>
 <dc:creator>netsperience</dc:creator>
 <guid isPermaLink="false">comment 1231107 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>What situation would the</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1230922</link>
    <description> &lt;blockquote&gt;&lt;p&gt;What situation would the page be &quot;served&quot; as xml... ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;A server sends information to the browser about every file it sends. One piece of data is known as the MIME type. For HTML the MIME type is text/html. Any file can be sent as text/html, including php files, .cf files, and so on.&lt;/p&gt;
&lt;p&gt;The browser in turn sends information to the server as to what MIME types it can handle. A number of webmasters will send files as one of the possible XHTML MIME types to browsers that can handle it. There are several ways to do this, from server settings to using PHP.&lt;/p&gt;
&lt;p&gt;As you are using HTML, the restrictions of XHTML/XML do not apply. Same with XHTML sent as HTML - only the validator takes any notice of the difference - browsers treat the code as regular HTML, &lt;strong&gt;not&lt;/strong&gt; XHTML.&lt;/p&gt;
&lt;p&gt;Presumably some of those using XHTML do so to get the benefits of XML-- or why put up with unnecessary restrictions? Hence my caution about using code that will break when they eventually send their elaborately coded pages as the &quot;correct&quot; MIME type.&lt;/p&gt;
&lt;p&gt;Hope you can make sense of all this!  :\&lt;/p&gt;
&lt;p&gt;P.S. One way of sending XHTML is described at &lt;a href=&quot;http://keystonewebsites.com/articles/mime_type.php&quot;&gt;Keystone Websites.com&lt;/a&gt;.&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Jun 2008 02:50:07 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1230922 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I never had a problem with</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1230897</link>
    <description> &lt;p&gt;I never had a problem with document.write() but I am mostly adding JavaScript to PHP pages or Lassoscript these days, or HTML.&lt;/p&gt;
&lt;p&gt;Do you mean XHTML files using a .xml extension? What situation would the page be &quot;served&quot; as xml, in rss?&lt;/p&gt;
&lt;p&gt;I&#039;m not questioning you, but I&#039;m curious, I never encountered a situation like that.&lt;/p&gt;
 </description>
     <pubDate>Tue, 24 Jun 2008 03:50:46 +0000</pubDate>
 <dc:creator>netsperience</dc:creator>
 <guid isPermaLink="false">comment 1230897 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>netsperience</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1230894</link>
    <description> &lt;p&gt;&lt;strong&gt;netsperience&lt;/strong&gt; suggested:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;document.write (&amp;#039;&amp;lt;scr&amp;#039; + &amp;#039;ipt type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js2.js&amp;quot;&amp;gt;&amp;lt;/scr&amp;#039; + &amp;#039;ipt&amp;gt;&amp;#039;);&lt;/code&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Well, yes. You could. But bear in mind that document.write does not work in XHTML mode (on XHTML pages served as XML).&lt;/p&gt;
&lt;p&gt;Although you are more likely to be using HTML mode for your pages. Just thought I&#039;d mention it.&lt;/p&gt;
 </description>
     <pubDate>Tue, 24 Jun 2008 01:17:59 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1230894 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>you can do that if you use</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1230893</link>
    <description> &lt;p&gt;you can do that if you use document.write() to embed the second js file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js1.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and in js1.js have this code:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;document.write (&amp;#039;&amp;lt;scr&amp;#039; + &amp;#039;ipt type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js2.js&amp;quot;&amp;gt;&amp;lt;/scr&amp;#039; + &amp;#039;ipt&amp;gt;&amp;#039;);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;notice that I have separated the script tags so they do not interfere with the container script...&lt;/p&gt;
 </description>
     <pubDate>Tue, 24 Jun 2008 00:40:56 +0000</pubDate>
 <dc:creator>netsperience</dc:creator>
 <guid isPermaLink="false">comment 1230893 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Nope.
Basically, a .js file</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/nesting-javascript-includes#comment-1230487</link>
    <description> &lt;p&gt;Nope.&lt;/p&gt;
&lt;p&gt;Basically, a .js file interprets JavaScript, not HTML. But you can combine two .js files into one and use the combined file as the SRC to the SCRIPT. A tiny bit more work, but does what you want-- if I understand you correctly.&lt;/p&gt;
 </description>
     <pubDate>Fri, 06 Jun 2008 19:18:32 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1230487 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
