Hi all!!
|
I’m trying to display the terms of a site but I can’t create a instance of TermSession object. |
context = SP.ClientContext.get_current(); var taxonomySession = SP.Taxonomy.TaxonomySession.getTaxonomySession(context);
This code displays the following error (firebug):
TypeError: b.get_path is not a function SP.Taxonomy.TaxonomySession.getTaxonomySession()
I’ve tried in two different SharePoint 2013 environments (online and in premise)
Am I missing something?
Thanks!
Hi Santiago ,
you have to add SP.Taxonomy.js on your page explicitly as it is not loaded by default in SharePoint and also make sure that you have loaded the SP.Runtime.js and SP.js files .
Please take a look below link might be this will help you …
http://www.vrdmn.com/2012/12/working-with-taxonomy-and-javascript-i…
Thanks,
Pankaj Srivatava