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

New Post: JQuery Deferred compatibility

$
0
0

Yes. The SPServices calls use jQuery.ajax underneath the covers, do they not? You can simply return the jqXHR object rather than discarding it (which is what happens currently). My understanding is that that object can be used with the Deferred functionality.

So every call do $().SPServices would return that underlying jqXHR object, allowing you to do something like
:

$().SPServices({
        operation: "GetListItems",
        async: true,
        listName: myListId
}).done(function() {
    alert("I'm done!");
});     

as well as the more complex stuff you can do with Deferred.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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