Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: UI won't update when making several SPSpervices calls

$
0
0

What you really need to do is setup a callback. 

Prior to your $.each() iteration, you'll drop the spinner onto the page, the iterate, then fire your callback.  This is the only way to ensure the correct processing of your function calls.

Since you want the page to "redraw" after each SPS call, you'll want to handle your $.each() differently and add a callback within your SPService call or within the $.each() function itself.  Please note, no matter what you do, once you've made 2 concurrent ajax requests (async or synchronous), the IE browser will lock up until these are processed.

Some more info on the topic:

http://stackoverflow.com/questions/561046/how-many-concurrent-ajax-xmlhttprequest-requests-are-allowed-in-popular-browse

What I've gathered from your post is that you have a list for each store, which is why you are making so many SPService calls.  Why not put all of those items into one list as content types and create one batch for them all, thus creating on ajax request?

Cheers,
Matt 


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>