Jquery with PHP problem
<p>Let me post the code first.</p>

<pre><code>function alertCallback&lt;?=$position_info['id']?&gt;()
    {
            var id  =       &lt;?=$position_info['id']?&gt;;
            var itemname=    '&lt;?=$na?&gt;';
&lt;?PHP if($position_info['name'] == $wposition){ ?&gt;
var reward = '&lt;?= $itmname ?&gt;';
$('#selected_item').html(''+itemname+reward);
&lt;?PHP item_add($_SESSION['userid'],$itmid,1); } else { ?&gt;
var noreward = 'You Found Nothing!';


$('#selected_item').html(''+itemname+noreward);
&lt;?PHP } ?&gt;
</code></pre>

<p>}</p>

<p>The above is working to an extent. The page is a image map where if you click on the right spot then you get an item. It is currently working where if you click on the right spot you get the item. Or get told you found nothing.</p>

<p>The problem I have is that the page reloads to set new positions</p>

<pre><code>&lt;script type="text/javascript"&gt;
//one seconds=1000 micro seconds
setInterval(function() {
   $('#load').load('itemclick_ajax.php');

 },60000);
&lt;/script&gt;
</code></pre>

<p>but another item is won as long as the page is displayed. Any ideas on how to stop this occuring. If i keep the browser showing the page then im running up to thousands of items won.</p>
