SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

ECMAScript object model can only be used in SharePoint sites. So you can’t use this object model in an site to access SharePoint resources deployed in another url as this is cross-site scripting and not allowed.

But on a master page of the root site, can we access the lists present on the other sites in site collection and the lists present on sites in another site collection?

share|improve this question
Which version of SharePoint? – Robert Kaucher Mar 20 '14 at 17:11
up vote 14 down vote accepted

You cannot make cross-sitecollection calls from javascript client object model in SharePoint 2010.

But you can make such calls in SharePoint 2013:

var crossSiteContext = new SP.ClientContext("http://url-of-another-siteCollection/");

var crossSiteWeb = crossSiteContext.get_web();




},function(sender,args){ alert(args.get_message()); });
share|improve this answer
Superb. Thats great. Can you give me a reference or article explaining the js object model with example pls. For sp2013 – variable Mar 20 '14 at 17:58
Please check my updated code. – Vardhaman Deshpande Mar 20 '14 at 19:47
Is it possible to fetch list column valur? – variable Mar 21 '14 at 3:19
Follow this link for simpler… – Vardhaman Deshpande Mar 21 '14 at 6:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.