Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Signal the end of context.executeQueryAsync queue? (JSOM)

$
0
0

I have a JSOM method called "getAllListsOfType" which takes a `ListTempalteType` as a parameter.

It runs a recursive search, similar to a File/Directory crawl looking for all lists which match the supplied template.

Since this can run (n) times, even after the recursion is finished looping, I could have (n) AJAX calls queue'd up.

SP.JS and its kin do not seem to use jQuery in any fasion, so I cannot rely on jqXHR's promise structure to know when the final call has been returned.

Is there some kind of a queue or promise mechanism built in to executeQueryAsync that lets me know when it is finished making calls?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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