javascript - Wrapping long-running function in asynchronous call -


i have code causing browser "hang" or "stop responding" due slowness of call rest. browser timeout afaik.

(this done way due legacy code, in case might ask why did not use jquery or something--where there stuff in c++ code (activex) needed before calling rest api)

so here's code:

for (var = 0; < rowelems.length; i++) {      var resp = activexobject.writetorest(_rowtodata(rowelems[i])); } 

how write asynchronous callback activexobject.writetorest call wrapped , not cause timeout issue? passing parameters , getting response back.

i can't use jquery since javascript environment code runs not have jquery.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -