processItems() { var clientContext = new SP.ClientContext('http://nhclt-pc1428-1:2000'); var oList = clientContext.get_web().get_lists().getByTitle('Tags'); var itemCreateInfo = new SP.ListItemCreationInformation(); this.oListItem = oList.addItem(itemCreateInfo); oListItem.set_item('Tag', '1234'); clientContext.executeQueryAsync(Function.createDelegate(this, this.deleteItem), Function.createDelegate(this, this.displayCount)); } function deleteItem() { alert('success'); } function displayCount() { alert('failed'); } processItems();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)