GlideAjax not processing callback function

Mike Pottorf
Tera Contributor

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:

find_real_file.png

find_real_file.png

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

1 ACCEPTED SOLUTION

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

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


View solution in original post

4 REPLIES 4

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

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


Goran,



Thank you so much.   I looked at every part of that script but the function call.   That worked instantly.



Mike


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


Abhinay Erra
Giga Sage

Michael,



      I agree with Goran. There should not be quotes for the call back functio in ga.getXML(). Everything else looks fine.



Thanks,


Abhinay