- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2022 10:57 AM
So I realize that using an initialize function on a GlideAjax is a bad thing to do.
On regular script includes, I use the initialize function to declare certain variables that will be used by the class. Is there any way to do this on a GlideAjax script include if the initialize function cannot be used?
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2022 11:38 AM
Hi,
Additional example in this article here: https://community.servicenow.com/community?id=community_article&sys_id=1f0f6af11be7cd14c552c8031d4bc...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2022 08:15 PM
That's a good post. Thanks fro sharing!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2022 07:39 AM
I've marked this as the correct answer as it takes into account scoped applications.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2022 09:30 AM
I feel like im missing something. Whats different from a scoped perspective for this? I'm just curious and I'm not seeing a difference. Thanks!