GlideAjax not work on service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2017 10:28 PM
HI Team,
I have a include script and have a function named 'InitForm' , this function is do some initial work on page loaded. and the function is work fine on 'OnLoad'.
currently ,i want to invoke the same function on service portal, but there is no response, please refer to below screenshot:
I just create a new widget, and input a button, when i debug the code, the responseXML is undefined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2017 12:00 AM
Hi,
Does the script include of the 'Init' function has the 'Client' checkbox selected?
'Client' field should be selected ont the script include to accept the Glide ajax call.
PLEASE MARK THIS IS AS CORRECT OR HELPFUL IF THIS MAKES ANY IMPACT!!!
Regards,
Rishi Reddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2017 06:24 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2017 02:21 AM
You can utilize the server script instead of making the glideajax. If glideajax is used, then make sure you don't override the initialize function if yes then you need to explicitly specify the parameters as request and responseXML.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2017 05:53 AM
hmm.. never used glideajax calls in widgets, not even sure if they work. I see no need for it either since you get the server side script as well in the widget. Why not just load the data when the widget load in server script and pass in data to the client script directly?
//Göran