Glide AJAX is not defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 01:58 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 02:19 PM
Hi,
Take a look here how to set up GlideAjax in scoped apps: GlideAjax and AbstractAjaxProcessor
/Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 02:31 PM
Thanks for your response.But i am unable to call even script include .It is throwing GlideAjax is not defined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 02:51 PM
Make sure your are referencing your Ajax script include with the full scoped API name. Example:
var ga = new GlideAjax('scopename.ScriptIncludeName');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2016 02:58 PM
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