passin information to a jQuery modal that loads dynamic content
<p>I have a main page with a js variable. I want to open a modal on that main page and load html content from a different page. I need to pass that variable to the modal that is opening and use it inside the loaded html content. 
I have seen several questions similar to that in these forums but i don't see any that explain how I can tease that variable out of the loaded html content. 
I know that i can make a GET request for that external html content, and I know that i can include the variable in the query string. But how do i get it out of the query string inside the modal?
All of the examples i see for getting things out of query string involve using window.location.href or something similar. Well that won't work for me because that returns the url of the main page I am on and not my modal popup.
Any suggestions?</p>
