8 views

Symptoms


When you have a client script making an asynchronous GlideAjax using "getXML" and if you use "getAnswer()" function the client script can be prone to inconsistent behavior 

Release


ALL

Cause


getAnswer() API is supposed to be used only for Synchronous GlideAJAX 

Resolution


When you are using getXML("function call") use 

var answer = response.responseXML.documentElement.getAttribute("answer"); 

instead of 

var answer = <synchronous object>.getAnswer();

Inside the function definition 

Additional Information


https://docs.servicenow.com/bundle/jakarta-application-development/page/app-store/dev_portal/API_reference/GlideAjax/concept/c_GlideAjaxAPI.html

Article Information

Last Updated:2018-06-01 01:53:13
Published:2018-05-25