asp.net - Jquery Ajax and Iframe -



asp.net - Jquery Ajax and Iframe -

i have page on calling ajax function processing on server, during processing page displays loading icon. have iframe on same page, purpose of iframe info server , display in iframe using jquery ajax.

the problem having is, iframe not updating until first function phone call completed... browser blocking multiple ajax calls or there missing?

here code:

the phone call made on main page: done on document.ready. calling same file new querystring

$.ajax({ url: window.location.href + '&process=1', context: document.body, success : function(response){ window.location.href = response; } });

the page in iframe: calls function after every 2 seconds fetch info server

window.settimeout(fetchstatus,1000); function fetchstatus(){ $.ajax({ url: 'webform1.aspx?act=status', context: document.body, success : function(response){ $('#ratorst').html(response); } }); window.settimeout(fetchstatus,1000); }

usually, can run multiple ajax request in same time... did seek using :

$.ajax({ .... async:false, ... });

it's not solution seek :)

http://api.jquery.com/jquery.ajax/

jquery asp.net ajax iframe

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -