How to call this javascript function from code behind
<p>I'm putting javascript created controls (http://www.dariancabot.com/projects/jgauge_wip/) on my page.</p>

<pre><code>&lt;div class="jgauge" &gt;&lt;/div&gt;

$(document).ready(function () {  
    var ctl; 
    ctl = new jGauge();   
    ctl.init();
)}
</code></pre>

<p>Let's say I need to pass few parameters to <code>init</code>. like... <code>ctl.init(a, b);</code> from code behind, how can I achieve that? I tried something like this...</p>

<pre><code>string script2 = String.Format("init('{0}','{1}')", param1, param2);

this.Page.ClientScript.RegisterStartupScript(this.GetType(), "initialize control", script2, true);
</code></pre>

<p>But it's not working. I got:</p>

<pre><code>ReferenceError: init is not defined
</code></pre>
