Dynamically load & parse local HTML from within HTML?
<p>A bit of an unusual setup:</p>

<p>I'm writing in an html page that in turn loads another html page, parses it, analyzes it, and displays information about it.</p>

<p>The parsing is fairly easy using jQuery. I just need to figure out how to load the external page - that is, when page A is displayed in the browser, it needs to load page B, analyze page B, and display information about page B.</p>

<p>Both pages are local (not served via a web server). </p>

<p>Both <code>load</code> and <code>ajax</code> from jQuery run into the cross-origin permission issue:</p>

<pre><code>XMLHttpRequest cannot load file://localhost/Users/me/test.html. Origin null is not allowed by Access-Control-Allow-Origin.
</code></pre>

<p>I can load the page with a <em>script</em> tag, but then I don't know how to access it so I can parse it:</p>

<pre><code>&lt;script type="text/html" src="test.html"&gt;&lt;/script&gt;
</code></pre>

<p>Any ideas?</p>
