Archive

Posts Tagged ‘Client Object Model JavaScript’

sharepoint 2010 client object model javascript example

September 5, 2013 2 comments

SharePoint 2010 Client Object Model Javascript


Open SPD
Open Any SharePoint site
Click on Site Pages
Click on Page in the top ribbon
Select ASPX page

Add below registery entries

<%@ Assembly Name=”Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>
<%@ Register Tagprefix=”SharePoint” Namespace=”Microsoft.SharePoint.WebControls” Assembly=”Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>
<%@ Register Tagprefix=”Utilities” Namespace=”Microsoft.SharePoint.Utilities” Assembly=”Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>
<%@ Register Tagprefix=”asp” Namespace=”System.Web.UI” Assembly=”System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ %>
<%@ Import Namespace=”Microsoft.SharePoint” %>
<%@ Register Tagprefix=”WebPartPages” Namespace=”Microsoft.SharePoint.WebPartPages” Assembly=”Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

Add below code

Client Object Model Javascript

Client Object Model Javascript

Good one: http://netsourcecode.blogspot.com/2011/09/using-javascript-spjs-in-web-parts-in.html

http://www.avanadeblog.com/sharepointasg/2011/05/client-object-model-introduction-part-1-reading-list-items.html

SharePoint 2010 Client Object Model Create List Using JavaScript with Application Page