How to send data to one html file from another using jQuery
<p>So, I have 2 html files with their own javascript files
file1.html and file1.js
file2.html and file2.js</p>

<p>I am loading file2.html in my file1 page using this code in file1.js:</p>

<pre><code>   $.get("file2.html", function (deals) {
           $('#wrapper').html(deals); //deals is JSON object i want to send
           function2(deals);
        });
</code></pre>

<p>And in file2.html I have function2 as:</p>

<pre><code>  function function2 (deals){
alert(JSON.stringify(deals));
</code></pre>

<p>}</p>

<p>The second html page (file2) successfully loads into file1's #wrapper div but it doesnt get the JSON object deals/
What should i do..please help</p>
