async and sync glideajax

shidhartha1
Kilo Contributor

how we can use asyncronous and syncronous glideajax??

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

getXMLWait is synchronus


getXML is asynchronus



read more here


GlideAjax - ServiceNow Wiki


-Anurag

Chuck Tomasi
Tera Patron

FYI - Unless you ABSOLUTELY need to do something synchronously, use async. Sync can hold the user's browser hostage while you wait for a response. If you're writing a scoped app, I believe it doesn't even allow you to save with a synchronous call.