Glide AJAX is not defined

prasad48
Tera Guru

I am using a scoped macro and had code to call a script include using Glide AJAX.But i am getting error as Glide Ajax is not defined .Please help

6 REPLIES 6

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi,



Take a look here how to set up GlideAjax in scoped apps: GlideAjax and AbstractAjaxProcessor



/Göran


Thanks for your response.But i am unable to call   even script include .It is throwing GlideAjax is not defined.


Make sure your are referencing your Ajax script include with the full scoped API name.   Example:


var ga = new GlideAjax('scopename.ScriptIncludeName');


My code is Below



var ga = new GlideAjax('global.updateinfo');


  alert('out');


  ga.addParam('sysparm_name','setInfo');


  ga.addParam('tbname',tbName);


  ga.addParam('id',updatedRow.id());


  ga.addParam('idname',cellID);


  ga.addParam('idvalue',updatedCell.data());






  ga.getXML(GetAnswer);


  function GetAnswer(response) {



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


  alert(answer);


  }



My UI Macro is in scope .My code is built in Ui macro.Do i need to make any changes if i have a scope for Ui Macro