title: Fancybox - is it possible to use a javascript variable string as the HTML content?
body: <p>I know the instructions for Fancybox state that the content can be passed in any of four ways; Images, inline, iFrame or Ajax.</p>
  
  <p>However I was wondering if I had a string like:</p>
  
  <pre><code>var html = "&lt;p&gt;Some html content&lt;/p&gt;";
  </code></pre>
  
  <p>If I could invoke a a fancybox window using this content?</p>
  
  <p><strong>EDIT</strong> With regards to JFK's answer below, what is the best way to serve content depending on a condition? For example, let's say I have two different fancybox links:</p>
  
  <pre><code>&lt;a href="#" class="fancybox class-one"&gt;Click me&lt;/a&gt;
  &lt;a href="#" class="fancybox class-two"&gt;Click me&lt;/a&gt;
  </code></pre>
  
  <p>So when either link is clicked, I want to display different content depending on the second class name?</p>