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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access