Overview
Script Includes are reusable server-side JavaScript objects that are loaded on demand. They promote code reuse and maintainability by encapsulating logic in class-based structures. Client-callable Script Includes enable client-server communication through the GlideAjax framework, following the AbstractAjaxProcessor pattern.
Why It Matters for the Exam
Script Includes account for 12% of the CAD exam. Questions focus on creating and using Script Includes, extending base classes, making Script Includes client-callable, and understanding scope implications.
Key Concepts to Master
💡 Exam Tips & Strategy
Remember that client-callable Script Includes must extend AbstractAjaxProcessor and have the 'Client callable' checkbox selected. The getParameter() method retrieves values passed from GlideAjax. Script Includes are loaded on demand — they don't execute until called.