Jump to content

Abort JS in AjaxEvent


diegojmap

Recommended Posts

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);

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...