title: Load a html page into a div for jqueryui dialog and editing the contents
body: <p>I have a Html page i'm loading into a jquery ui dialog, I need to insert a session id into the static loaded html for the page onload processing.  My first thought was to use  .Data() and add in the var that way but I don't think it's possible on a .Load(page.html) call?</p>
  
  <p>So I have tried to do this a lot of different ways but here is the gyst:   </p>
  
  <pre><code>&lt;div id="cs0" title ="Add/Edit Licence periods"&gt;&lt;/div&gt;
  $('#cs0').hide();
  
  //load the page into the the div
  $('#cs0').load("/Periods.html");
  
  //edit inner html of one of the divs in the loaded page
  $('#cs0').innerHTML.getElementById("MyDiv").innerHTML = sessionid;
  
  $('#il0').click(function () {
      $('#cs0').dialog({
          autoOpen: true,
          maxWidth: 1000,
          maxHeight: 800,
          width: 700,
          height: 300,
          modal: true,
      });
  });
  </code></pre>
  
  <p>I have also tried using data, but can't get this to work :( any thoughts?</p>