Hi

I am firing Ajax calls from a webpage. If any AJAX call hangs in between 
then the others also hangs until the hanged AJAX returns. Is this a Web2py 
Bug or my applications bug????

Below is my code:

{{extend 'layout.html'}}
<script type="text/javascript">

setInterval(test1,1000);

function test1()
{  
       ajax('{{=URL('get_host_status')}}',['q'],'target1');   //  Ajax Call
}

function test()
{
        ajax('/baadal/admin/setup_host',['q'],'target');    // Ajax Call
}

$(document).ready(function(){

  alert("hello");
});


</script>

<form>
<INPUT type="text" id="q" name = "q" value="web2py"/>
<INPUT type="button" value="submit" onclick="test();"/>
</form>
<br/>

<div id="target"></div>
<br/>
<br/>
<br/>
<div id="target1" ></div>

When I press Submit the content at "target1" div stops updating untill the 
first AJAX call fired on pressing submit button returns. 

When I press submit button the ajax call fired performs some task for about 
60 seconds and for those 60 seconds the "target1" div is never updated.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to