- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 02:44 PM
Hello,
I am trying to write a pretty basic client script with a GlideAjax call. The issue that I am having is the callback function doesn't seem to be processed in the script. I have logs on both the script include and alerts on the client script to see potentially where the script is failing. All of the logs for the script include process and all but one of the alerts process on the client side. The one alert that doesn't process is within the callback function 'ajaxPass'. I have included the scripts below:
I am still fairly new to writing GlideAjax scripts but the script seems sound to me. I have written other scripts similar to this with no issue. I don't believe it is syntax as I have combed through the scripts looking for an error. If anyone has any insight it would be greatly appreciated.
Thanks,
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 02:58 PM
Hi Michael,
Haven't looked through the code so much, but you should skip the '' on you line 12. should be ga.getXML(ajazPass);
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 02:58 PM
Hi Michael,
Haven't looked through the code so much, but you should skip the '' on you line 12. should be ga.getXML(ajazPass);
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 03:02 PM
Goran,
Thank you so much. I looked at every part of that script but the function call. That worked instantly.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 03:06 PM
No problem Michael,
Always nice to have someone else to look at the code after you kept looking at it for to long.
//Göran

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 03:02 PM
Michael,
I agree with Goran. There should not be quotes for the call back functio in ga.getXML(). Everything else looks fine.
Thanks,
Abhinay