← Home
🔥0 DAY
0 XP
GlideAjax · Lv 1
🍼 Script Kiddo · ×1.001/1

Read the server response correctly in the GlideAjax callback.

manager_lookup.js
01var ga = new GlideAjax('UserUtils');
02ga.addParam('sysparm_name', 'getManager');
03ga.addParam('sysparm_user', g_user.userID);
04ga.getXMLAnswer(function(answer) {
05 ▢ ▢ ▢ ▢;
06});

Choose the right block

Instance Simulator (dev10294)idle
Pick a block, then hit RUN SCRIPT to simulate.