Is there a better way to redirect and pass parameter
<p>I have this table</p>

<pre><code>&lt;table id="tableDg" border=1&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
  &lt;td &gt;&lt;input type="hidden" id="path" readonly="true" value="{path}"&gt;{path}&lt;/input&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type="checkbox" class = "chkbCsm" &gt;&lt;/input&gt;&lt;/td&gt;
  &lt;td &gt;&lt;input type="hidden" id="nameText" readonly="true" value="{name}"&gt;&lt;a href="#"  class="aDg"&gt;{name}&lt;/a&gt;&lt;/input&gt;&lt;/td&gt; 
     &lt;td &gt;&lt;input type="hidden" id="nameText" readonly="true" value="{host}"&gt;{host}&lt;/input&gt;     &lt;/td&gt; 
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>After reading post from <strong>Felix Kling</strong>
My jQuery </p>

<pre><code>$('#tableDg tbody tr td a.aDg').live('click', function(){
    path=$('input', $(this).parent().prev().prev()).val();
    window.location.href = "/simon/infopage.html";

     var url_action="/getData";
     var client; 
     var dataString;

     if (window.XMLHttpRequest){ 
         client=new XMLHttpRequest();
     } else {                    
         client=new ActiveXObject("Microsoft.XMLHTTP");
     }

     client.onreadystatechange=function(){

         if(client.readyState==4&amp;&amp;client.status==200)
         {
                   //here i will get back path in infopage.html
         }
     };

     dataString="request=getconfigdetails&amp;path="+path;
     client.open("POST",url_action,true);
     client.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

     client.send(dataString);

});
</code></pre>

<p>Is this how i should get <code>path</code> from my previous page to <code>infopage.html</code></p>
