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
Can you share the code that you believe is causing this?
Usually, in IE, the heavy manipulation of DOM elements will cause the UI to "freeze"... specially inserts and deletions into DOM...
I also assume that you have async input parameter to SPServices calls set to True... if not, then yes, each one of those calls will "block" the UI until they complete.

So as a highlevel design approach, you want to 1) do the calls to the server in async, 2) as Matt suggested, use the callback to update status on the UI

Now, even this may not work, because it sounds like you are firing them all in parallel. The responses may be cumming back to so fast that the UI does not get a chance to update itself. Looking at your code implementation may help give you better direction. Another approach I have used in the past is to build up a batch update with javascript and then issue less calls to the server (ex. each call to UpdateList created 50 items)... you could further build a queue (an array of updates) and execute them all in sequence rather than in parallel.

Just

_________
Paul T



Viewing all articles
Browse latest Browse all 6517

Trending Articles



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