i can not use variable as javascript argument
<p>i am using Javascript on my page.
there is a problem when i use variable to send parameter to function,
when i write complete parameters directly as argument it works good like here </p>

<pre><code>&lt;script type="text/JavaScript"&gt;
        var X = new MediaController({ContainerDiv:"player",MediaUrl:"test.flv"}');
&lt;/script&gt;
</code></pre>

<p>but as i use a temp to put this argument in it, and then use temp as argument function it does not work!</p>

<pre><code>&lt;script type="text/JavaScript"&gt;
    var temp;
       temp = '{ContainerDiv:"player",MediaUrl:"test.flv"}';
        var X = new MediaController(temp);
&lt;/script&gt;
</code></pre>

<p>is there a point i missed?</p>
