The CreatorCon Call for Content is officially open! Get started here.

How to call script include from UI Page client script section ?

fisfreak
Kilo Contributor

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

 

20 REPLIES 20

Trupti6
Tera Expert

Hi,

can u show your server side code??