UpdateListItems example.

Oct 7, 2009 at 12:44 PM
Edited Oct 7, 2009 at 12:51 PM

UpdateListItems method example with SPService

 

function callUpdateListItems() {
now = new Date();
ID = testID;
$(divId).html(waitMessage).SPServices({
operation: "UpdateListItems",
listName: testList,
ID: ID,
valuepairs: [["Title", now]],
completefunc: function (xData, Status) {
$(divId).html("").append("<b>This is the output from the UpdateListItems operation:</b>");
$(xData.responseXML).find("z\\:row").each(function() {
showAttribute($(this), "ows_ID");
showAttribute($(this), "ows_Title");
showAttribute($(this), "ows_Modified");
showAttribute($(this), "ows_Editor");
$(divId).append("<hr/>");
});
$(divId).append("<b>Refresh to see the change in the list above.</b>");
}
});
}
Coordinator
Oct 7, 2009 at 2:08 PM

ankv:

I'm guessing that there's some sort of question here?  It looks like you've snipped this code out of our demo page.

M.