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

i already did but of no use.

Community Alums
Not applicable

Now i may sound like the guy "reboot the server" for any IT issue. 

but can you do following quickly, if it is not time consuming 

1) do cache.do on your instance

2) Create a new script include(copy) and ui page (copy)

and try ?

"thinking more troubleshooting methods"

Thanks

Ishan Parikh 

puneetgoels1
Tera Guru

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

 

find_real_file.png

Community Alums
Not applicable

Damnnnn man 🙂

Ooooh. I see, nice shot. To people who are reading this thread the reason GlideAjax did not work is because of the checkbox named DIRECT on the UI page was checked.

If this checkBox is checked, all the ServiceNow Javascript Dependencies (thats that support GlideAjax aswell) wont be available. This check box is basically used if you have to load external libraries into the Page.

Refrence : https://hi.service-now.com/kb_view.do?sysparm_article=KB0685211

Thank you,

Aman Gurram