Created
May 4, 2018 19:07
-
-
Save cmcdevitt/f13376f18efae29ff916a8f68d5f6995 to your computer and use it in GitHub Desktop.
Service Portal / Service Catalog GlideAjax lookup errors catalog client scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ga.getXML(parseResponse); | |
| // old (DOM Method) | |
| var result = response.responseXML.getElementsByTagName("result"); | |
| //New (JSON Parse Technique) | |
| //Use with Asynchronous GlideAjax calls with "getXMLAnswer" (not "getXML") | |
| var result = JSON.parse(answer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment