Javascript multiply function failed when together
<p>Javascript function does not work when </p>

<pre><code>function loadcontents(obj) {
  var params = $(obj).attr('href').split('?');
  $.getJSON(IVIDPLAY_BASE_DIR+'content/load2.php?'+params[1], function(json) { 
  if (json.returnval == 1) {
    $('#contents').fadeOut('fast', function() { $(this).html('json.contents').fadeIn('slow'); });
  }
}
</code></pre>

<p>is trigger to replace this div:</p>

<pre><code>&lt;div class="content"&gt;
    &lt;a href="{$content2.url}" onclick="return loadContent2(this, 'page', '2')"&gt;Click Here
    &lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>in another word, there is a function being refresh by the first function and it does not work, when the second one does work.</p>

<p>However! when </p>

<pre><code>loadContent2(this, 'page', '2')
</code></pre>

<p>is replace or remove</p>

<pre><code>loadContent2(this, "page", "2")
</code></pre>

<p>like so, the first function work, but not the second!</p>

<p>is there a way to by pass the quote issue? if it's a quote issue?</p>

<p>any help highly appreciated!</p>

<p>EDIT:</p>

<p>fire bug show no error, but it's clearly not working as logically should.</p>
