Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created October 12, 2014 22:11
Show Gist options
  • Save cmcdevitt/8fec4a0d0a8eec58ee8d to your computer and use it in GitHub Desktop.
Save cmcdevitt/8fec4a0d0a8eec58ee8d to your computer and use it in GitHub Desktop.
Explore Global JavaScript Object in ServiceNow in a UI Page
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
document.writeln("Prototype.Version: " + Prototype.Version + "<br />");
document.writeln("Lets look at Global in ServiceNow: <br />");
myGlobal = this;
for(myProp in myGlobal){
document.writeln(myProp + "<br />");
}
</script>
</j:jelly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment