In this post, I will provide details for you to access SharePoint data with JavaScript Object Model. JavaScript Object Model has different syntax together, I will cover common tasks of a SharePoint to get familiarity in accessing the objects. Files that are referred for JavaScript Object Model are:

SharePoint-2013-Hosting

 Now, I will show how to Access SharePoint Data using 2 easy ways:

How to Access SharePoint Website

The following code explains how we can access SharePoint Website:

We have to give only site collection relative url for getting the site object. clientContext.get_web() gets the web object and clientContext.get_site() is the method used to get site collection object.

How to Get SharePoint Data List

The following code explains how we can access SharePoint data list:

 I hope this post is helpful for you. Good luck and happy coding!

SharePoint 2013 Hosting Recommendation

HostForLIFE.eu’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. HostForLIFE.eu offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

hostforlife banner