How to use a client side database in JavaScript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="http://stackoverflow.com/questions/889688/how-to-query-an-xml-string-via-dom-in-jquery">How to query an XML string via DOM in jQuery</a>  </p>
</blockquote>

<p><strong>DUPLICATE:</strong> <a href="http://stackoverflow.com/questions/889688/how-to-query-an-xml-string-via-dom-in-jquery/890476#890476">how-to-query-an-xml-string-via-dom-in-jquery</a></p>

<p>I have an image gallery which uses PHP to look at text files and then show certain images. Now I want to do this in JavaScript instead with no server side requests. </p>

<p>I have been working in jQuery. Since I cant make .ajax requests, I have tried embedding my text file database into the HTML file. The text file is really XML but I dont want the browser to parse or hide it, so I am embedding it in an HTML comment. Then I parse the comment, and extract the XML. Then I have my database which I can use jQuery selectors on. This is nice, but I cant get it to work in IE - only FF. Also, this seems all too hacky.</p>

<p>Any cleaner ideas how I can do this all client side?</p>
