Return value from a call back function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 06:27 AM
Hi All,
I have a client script that use GlideAjax.
I want to return a value from the call back function, does anyone know how to implement this?
my script:
function funcationName (number) {
var ga = new glideAjax('ScriptName');
ga.addParam('sysparm_name', 'function_name');
ga.addParam('sysparm_number', number);
return gs.getXMLAnswer(callBackFunction);
}
function callBackFunction(response){
response = JSON.parse(response);
return response[0] == 'name' ? true : false;
}
Thanks In Advance 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 05:06 AM
I am using a callbackfucntion inside a onsubmit client side script.
CallBack function can give true/false. How do i pass that to onSubmit fucntion.