Iam in site B . There is another site named A .I want to access a list A of site A from site B using client object model. Can I access it I am using below code.
var context = new SP.ClientContext("/sites/SI");
var web = context.get_web().getByName("Site A");
var list = web.get_lists().getByTitle('List A');
where SI is my site collection .Currently I am using this code in site B. I am not able to fetch data from site A. Please help