Im trying to create Items via ECMA Script & the client sided object model (CSOM).
Unfortunately I couldnt find an answer yet, can you tell me how to create it? I want to translate this function to the CSOM world :
function Create_Hyperlink(address, description, comment) {
var URL = address + " , " + description;
$().SPServices({
operation: "UpdateListItems",
listName: "Hyperlinks",
batchCmd: "New",
valuepairs: [["URL", URL], ["Comment", comment]],
completefunc: function (xData, Status) {
alert("Created");
}
});
}
Thanks for your replies :))