How to send array to Javascript function from another page?
<p>I have a static site (let's call it settings page), and my Javascript function takes with AJAX data from mysql table and draws table on a HTML document.
It works like a charm - it takes all the data I need and doing it in a proper way. 
Here's my function:</p>

<pre><code>function get_people()
{
   $.post("/controller/get_people", function(data,status,xhr)
   {
       if(status=="success")
       {
           people_data = data;
           draw_table();
       }
   }) 
}
</code></pre>

<p>The thing is, on ANOTHER PAGE I have table with all people and checkboxes next to them. 
I'm checking this checkboxes, clicking a button and I want to get into settings page - and my get_people function will select data from mysql only about people checked on previous page.</p>

<p>technically the problem is - how can I pass an array to javascript function from another page? Can I save it on a DOM or something and read it from JS?</p>

<p>Please provide me some ideas : ]</p>
