Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: testing the new Promises Alpha (=4)

This routine does what it is supposed to do but never executes the .done clause
    function setUpdated(idRec) {
        var updatePromise = $().SPServices({
            operation: "UpdateListItems",
            batchCmd: "Update",
            listName: "{D3795486-9926-424E-8F14-59BE5DB65BA8}", 
            ID: idRec,
            valuepairs: [["Exported", 1]]
        }); //SPServices
        //notify when done
        updatePromise.done(function() {alert("we're done");});
        updatePromise.fail(function() {alert("we failed");});
    }

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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