Skip to content

Instantly share code, notes, and snippets.

@vgrem
Last active December 11, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrem/4604533 to your computer and use it in GitHub Desktop.
Save vgrem/4604533 to your computer and use it in GitHub Desktop.
Example 3. Retrieve WebTagging control properties
//Example 3. Retrieve ScriptForWebTaggingUI control properties
function initCountryTaggingControl3() {
var tagUI = document.getElementById(taggingWebId);
if (tagUI){
console.log(tagUI.TermSetId); //prints TermSet ID
console.log(tagUI.SspId); //prints TermStore ID
}
}
ExecuteOrDelayUntilScriptLoaded(initCountryTaggingControl3, 'ScriptForWebTaggingUI.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment