Refering to http://telerik.ximnet.com.my/kendo_test/
, the page will call the the function fn_mobileMS_update
in model 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
:58 beforeSend - fn_XiMnet_ajax_JSONP
:72 success - fn_XiMnet_ajax_JSONP