pass 2 values to a javascript function
<p>i am trying to pass 2 values to a javascript xmlHttp request; THE values are being passed to the javascript function. i was successfully passing a single value to the javscript function, but now i need to pass 2 values. the bold values is a string name i want in the javascript.</p>

<pre><code> echo "&lt;a href='#' class='thumb'&gt;&lt;img class='thumb-img' value = ".$row-&gt;aid." onclick='getVote(".$row-&gt;aid.", **".$row-&gt;atitle."**)' src='images/roadies/th".$row-&gt;aid.".jpg' /&gt;    &lt;/a&gt;";
</code></pre>

<p>one is a <strong>int</strong> and the other is a <strong>string</strong></p>

<p>in the javascript, i am not sure how to receive these values. earlier i used to:</p>

<pre><code>function getVote(int)
{
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
    {
     alert ("Browser does not support HTTP Request");
     return;
    }
    value = int;
</code></pre>

<p>for a single value. but now since there are 2 values to process, i dont know how to write the function for it;
i am currently (unsuccessfully) trying this:</p>

<pre><code>function getVote(int, name)
{
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
    {
     alert ("Browser does not support HTTP Request");
     return;
    }
    value = int;
    name= char;
</code></pre>

<p>Please tell me how to do it?</p>
