Not able to call a script include function from a UI page using GlideAjax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 11:54 PM
I am using GlideAjax to call a script include function 'acceptPayment' from a UI page but it is not able to run the function , both UI page and script include are in same scope and when I try to run the script include from the same GlideAjax code from a widget it works perfectly fine.
This is my client script code :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 10:50 PM
Thanks for reply, but this code doesn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 01:53 AM
how is that UI page getting invoked? from UI action etc?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 02:31 AM
It is the processing page of a payment gateway which gets redirected after the payment to check if the payment is succeed or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 02:51 AM
so the UI page is being opened as part of some redirection
Did you try adding alert in the Client script section of UI page?
Give the HTML code of the UI page and the client script here
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader