Script Includes: provide use case to understand !!

ZebaT
Giga Contributor

Hi all,

I'm trying to understand difference between script include and client ajax. Script include is for server side calling of same script and glideajax is similiar to script include but used to call this script on client scripts. Is my understanding correct?

Can you provide one or two use real  case for each which can help clear my confusion.

RThanks

1 REPLY 1

Hemanth M1
Giga Sage
Giga Sage

Hi @ZebaT ,

 

Simply put : GlideAjax is a client side API that allows client scripts (running in the browser) to make calls to server side Script Includes(piece of the logic which run on the Service side)

 

You can refer below threads for some practical use cases,

 

https://intelibliss.com/servicenow-client-script-and-glideajax/ 

 

https://www.servicenow.com/docs/bundle/yokohama-application-development/page/script/server-

 

scripting/concept/c_ScriptIncludes.html 

 

https://www.servicenow.com/community/developer-forum/what-is-glide-ajax-syntax/m-p/2009485 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025