diegojmap Posted September 11, 2019 Share Posted September 11, 2019 Good afternoon I have a routine that accesses a local service via java script executed this way via ajax event I trigger this routine N times, the problem is when an error occurs I can not open the other calls they follow running, is there any way? ScriptJS: = 'var arr = {' + 'thumbprint: "' + DtMdlSAT.thumbprint + '",' + 'files: [' + '"' + Image + '"' + ']' + '}; '+ '$ .post ("http: // localhost: 8888 / api / sign / files", JSON.stringify (arr)). done (function (data) {' + 'ajaxRequest (' + FrmDemoCentralJudgment.WebForm.JSName + ',' 'IntimacaoSucess'', ['' json = '' + JSON.stringify (data)]); '+ '}). fail (function (data) {' + 'ajaxRequest (' + FrmDemoCentralJudgment.WebForm.JSName + ',' 'IntimationError' ', [' 'json =' '+ JSON.stringify (data)]); '+ '});' ; UniSession.AddJS (ScriptJS); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 11, 2019 Share Posted September 11, 2019 11 minutes ago, diegojmap said: Good afternoon I have a routine that accesses a local service via java script executed this way via ajax event I trigger this routine N times, the problem is when an error occurs I can not open the other calls they follow running, is there any way? Hello, Can you please explain your problem once again? Quote Link to comment Share on other sites More sharing options...
diegojmap Posted September 12, 2019 Author Share Posted September 12, 2019 For example I have 100 pdfs files I call a subscriber on the client machine via javascript, I send 100 requests, if the first error executes the other 100, is there a command that when the first happens I abort the other 100? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.