Error : GlideAjax is not defined When calling From client script of a UI Page

puneetgoels1
Tera Guru

I am calling a script include using glide ajax from client script in a UI page. And strangely getting this error GlideAjax is not defined. Everything is in global scope. not sure about the reason of such an error

1 ACCEPTED SOLUTION

puneetgoels1
Tera Guru

Ok. I unchecked the Direct CheckBox and it seems to be recognizing GlideAjax Now

 

find_real_file.png

View solution in original post

14 REPLIES 14

Community Alums
Not applicable

Can you share your code ? 

var ga = new GlideAjax('DraftServiceCatalog');

ga.addParam('sysparm_name','getQuotes');
ga.addParam('sysparm_silent_request','true');
ga.addParam('sysparm_quoteID',rec_num.value);
ga.getXML(showQuoteDetail);

Community Alums
Not applicable

can you try adding scope name in front of the SI name. 

global.DraftServiceCatalog

Community Alums
Not applicable

Also can you give a try based on the below community link 

https://community.servicenow.com/community?id=community_question&sys_id=5ea05b69dbdcdbc01dcaf3231f96193a

please mark answer helpful or correct based on the impact of the response.

Thanks
Ishan Parikh

This is not related as mine is from client to server and that was on server to server