Pass associative array to Javascript function
<p>How can I pass associative array in the below code. I dont wish to create a variable </p>

<pre><code>uiDialog([MyURL,null,'GET'],false);
</code></pre>

<p>Some thing like this</p>

<pre><code> uiDialog([url:MyURL,data:null,method:'GET'],false);
</code></pre>

<p>I know I can do something like </p>

<pre><code>var arr = new Array(5);
  arr["000"]="Rose";
  arr["4"]="Ltd";
</code></pre>

<p>And pass this array but I am not interested in that I want a one line code</p>

<p><strong>UPDATE</strong>
It seams there is no one line solution but if object is not a problem i.e u cant use array function or length you can try this answer <a href="http://stackoverflow.com/questions/6888921/pass-associative-array-to-javascript-function/6888938#6888938">Pass associative array to Javascript function</a></p>
