Monday, September 14, 2009

SharePoint List Operations (Insert, Update and Delete) through JavaScript

I was thinking if there was a good way to access a SharePoint List through JavaScript. You might be wondering why there will be a need to do Insert, Update and Delete operations through JavaScript. Here is a scenario…

Assume that’s you don’t want a column in a SharePoint list to contain duplicate items or there are related lists with primary and secondary relationships, then if you want to update an item in the second list based on the primary list updation then, performing this operations through JavaScript is very comfortable and easy.

This has become possible with the help of SharePoint and Office Live JavaScript API. This API internally calls SharePoint Web Services to perform List Operations. You can find these details here…

http://darrenjohnstone.net/2008/07/22/examples-for-the-sharepoint-and-office-live-javascript-api/

http://darrenjohnstone.net/2008/07/22/a-cross-browser-javascript-api-for-the-sharepoint-and-office-live-web-services/