Quantcast
Viewing all articles
Browse latest Browse all 6517

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

Michael:

Sorry for the delay in getting back to you.

I just tried the following code with ALPHA4 and ALPHA5 (which I'm still working on) in both IE9 and Firefox. In all cases, the "we're done" alert popped up. Can you give some more context for what you are doing? Or maybe isolate it down a bit?

M.
$(document).ready(function() {

    var updatePromise = $().SPServices({
        operation: "UpdateListItems",
        batchCmd: "Update",
        listName: "States", 
        ID: 267,
        valuepairs: [["State_x0020_Abbreviation", "BL"]]
    }); //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>