https://docs.servicenow.com/bundle/paris-application-development/page/script/ajax/topic/p_AJAX.html
getXML(<callback_function>) is asynchronous, it executes the call back on return , and code execution does not wait glide ajax to complete
getXMLWait() is synchoronous, code execution waits glide ajax for it to complete ,
when complete neeed to call glidejax.getAnswer(), this is getting the default XML attribute "answer", the script include need to just return an Object, that will be set to "answer" attirbute in XML, and casted as as string
No comments:
Post a Comment