Hi,
Refering to http://telerik.ximnet.com.my/kendo_test/, the page will call the the function fn_mobileMS_update in model mobileMS.js (http://telerik.ximnet.com.my/kendo_test/js/mobileMS.js)
In the function fn_mobileMS_update, it will call XiMnet_JS_Tool.fn_XiMnet_ajax_JSONP which is an AJAX call.
However, I noticed via the console, the success event of the Ajax call is fired after the code in mobileMS.js -> console.log("mobileMS").
How do I make sure the code will fire only after the Ajax call is completed so that I can get the data? I already set it as async: false,
Console:
XiMnet_JS_Tool.js:58 beforeSend - fn_XiMnet_ajax_JSONP
mobileMS.js:30 mobileMS
XiMnet_JS_Tool.js:72 success - fn_XiMnet_ajax_JSONP
Thanks.
Refering to http://telerik.ximnet.com.my/kendo_test/, the page will call the the function fn_mobileMS_update in model mobileMS.js (http://telerik.ximnet.com.my/kendo_test/js/mobileMS.js)
In the function fn_mobileMS_update, it will call XiMnet_JS_Tool.fn_XiMnet_ajax_JSONP which is an AJAX call.
However, I noticed via the console, the success event of the Ajax call is fired after the code in mobileMS.js -> console.log("mobileMS").
How do I make sure the code will fire only after the Ajax call is completed so that I can get the data? I already set it as async: false,
Console:
XiMnet_JS_Tool.js:58 beforeSend - fn_XiMnet_ajax_JSONP
mobileMS.js:30 mobileMS
XiMnet_JS_Tool.js:72 success - fn_XiMnet_ajax_JSONP
Thanks.