title: Open fancybox from function
body: <p>I am trying to open a fancybox from a function I have - in short my HTML code looks like this;</p>
  
  <pre><code>&lt;a href="#modalMine" onclick="myfunction(this); return false;"&gt;
    click
  &lt;/a&gt;
  </code></pre>
  
  <p>and a part of my function looks like this;</p>
  
  <pre><code>function myfunction(me) {
      $(me).fancybox({
          'autoScale': true,
          'transitionIn': 'elastic',
          'transitionOut': 'elastic',
          'speedIn': 500,
          'speedOut': 300,
          'autoDimensions': true,
          'centerOnScroll': true,
      });
  }
  </code></pre>
  
  <p>The above works in IE but not in FireFox or Chrome - any idea how I can fix this? I know that one why is to trigger another link, but I hope another solution is possible.</p>