Server-side GlideAjax

All Script Includes execute only on the server. However, there is a way to call certain Script Includes (specifically GlideAjax Script Includes) from client-side scripts. The client-side GlideAjax API will be explained in the next chapter, but here, we'll learn how to write a server-side script that's intended to be accessible from the client.

There are many reasons that a client-side script may need to access server-side functionality. One of the best reasons to use GlideAjax is because it runs asynchronously, meaning that it doesn't lock up or negatively impact the user's client-side performance.

GlideRecord queries are one great example, but there's already a way to perform queries asynchronously using the client-side ...

Get ServiceNow: Building Powerful Workflows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.