Passing query strings with jQuery
<p>I've been googling for two hours now, can't find the answer. Hope you guys can help me out.</p>

<p>The following is part of a refresh script in jQuery. I'm using this code in <em>index.php</em>:</p>

<pre><code>&lt;script type="text/javascript"&gt;
jQuery.noConflict();

// UPDATE TYPES
function typeUpdate() {
    jQuery.get("script.php"), function(data) {
        jQuery('#heroTypes').html(data);
    });
    window.setTimeout("typeUpdate();", 500);
};
&lt;/script&gt;
</code></pre>

<p>That <em>script.php</em> contains a SQL command that gets information and updates a div in <em>index.php</em>. It works perfectly, but the thing is that now I need to pass a query string to that file. I tried doing like this but it won't work:</p>

<pre><code>jQuery.get("script.php?s=&lt;? $querySetup ?&gt;"), function(data) {
</code></pre>

<p><strong>$querySetup</strong> is the php variable that gets the query string. If I try to send it manually (for instance "script.php?s=53") it doesn't work either. Would <strong>really</strong> appreciate help here, is there any way to achieve this? Thanks in advance!</p>
