I am working on a javascript function for SP 2010 site where i need to fetch some data (Taxonomy) from a 2013 SharePoint site. Is there any way that i can get the SP 2013 site taxonomy data in SP 2010 application using JSOM or REST (JS)? Both the sites are in the same network.
The below code is throwing an error at context = SP.ClientContext(2013 site URL);
Error - Argument Exception. Value doesn't fall within the expected range. Paramenter name : serverRelativeUrl
SP 2010 code -
$(document).ready(function () {
var scriptbase = 2013 site URL/_layouts/15/";
$.getScript(scriptbase + "SP.Taxonomy.js", function () {
context = SP.ClientContext(2013 site URL);
getTaxonomyData();
});
});