title: jquery-ui, Use dialog('open') and pass a variable to the DIALOG
body: <p>I have the following JS:</p>
  
  <pre><code>$('#listeditdialog').dialog('open');
  </code></pre>
  
  <p>Which opens the following dialog:</p>
  
  <pre><code>$('#listeditdialog').dialog({
      autoOpen: false,
      resizable: false,
      position: ['center',150],
      width: 450,
      open: function(event, ui) {
          $("#listeditdialog").load("/projects/view/tasks/ajax/?listid=" + XXXX);
      },
      close: function(event, ui) {
          $("#listeditdialog").html('&lt;p id="loading"&gt; &lt;/p&gt;');
      }
  });
  </code></pre>
  
  <p>My Question is when I use the dialog open function in another JS function, how can I pass a listID variable which I would get fom the click even bind that fired the dialog open func.</p>
  
  <p>Thanks!</p>