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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -