How to call script include from UI Page client script section ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2018 02:50 AM
Hello,
I need to make a call to script include from UI Page, when i try to invoke a function from client script of UI Page, it is not returning me anything, where as same thing works from catalog client script. please find the code snippet below.
$(document).ready(function() {
var ga = new GlideAjax("ControlVirtualMachinesAjax");
ga.addParam("sysparm_name", "getVMSInRG");
ga.getXML(ajaxResponse);
function ajaxResponse(serverResponse) {
alert("ServerResponse: " + serverResponse);
}
});
Same code works perfect from catalog client script but not from client script of UI Page. In the above code , control never comes inside ajaxResponse method.
Thanks,
Krishna P
Labels:
- Labels:
-
Scripting and Coding
20 REPLIES 20

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2018 06:03 AM
Hi,
can u show your server side code??