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!
I think I found my mistake… It’s seems that sp.runtime.js has to be loaded manually.
And then I could load my terms normally.
Thanks for the advice. |