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

New Post: UpdateListItems Not Updating List?

$
0
0
Paul, thanks so much for the help! It was precisely what I needed. You're right-- there was no escaping going on. I completely forgot about the conversion to XML prior to submitting to the list. In order to help others possibly struggling with this same roadblock, here's the revised (and working!) code:
var dfNotes = CKEDITOR.instances.notes.getData();

$().SPServices({
    operation: "UpdateListItems",
    async: false,
    batchCmd: "Update",
    listName: list,
    ID: prog,
    valuepairs: [["Notes", $("#notes").text(dfNotes).html()]],
    completefunc: function (xData, Status) {
        alert($("#notes").html());
    }
});
The first line references a rich text editor field that contains newly modified text. Note the slight difference in the valuepairs line where it now uses .text().html() to escape the text for transmission via XML.

Thank you again, Paul! You saved me a lot of time.

Viewing all articles
Browse latest Browse all 6517

Trending Articles