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
Post a Comment