title: passing variables from PHP page to jQuery modal window
body: <p>Ok, so as the title implies, I'm opening a modal dialog and need to pass it various variables, one of which is the url of the page I'm starting from. Now this wouldn't be a problem if the jQuery that creates the dialog was in script tags in the head of a page as I could use PHP to echo the info and append it to the URL as a GET string, but the code is actually in an external .js file which is referenced in the head.</p>
  
  <p>script.js:</p>
  
  <pre><code>var dialogVariables = {
      modal: true,
      autoOpen: false,
      width: 500,
      buttons: { 
          Cancel: function() {
              $(this).dialog('close');
          } //end cancel button
      },//end button
      open: function() {
          $("#reportDialog").load("/report.php");}
      };
  $("#reportDialog").dialog(dialogVariables);
  </code></pre>
  
  <p>Any ideas as to how I can pass the information across?</p>