doedje / jquery.soap

This script uses $.ajax to send a SOAP:Envelope. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too.
353 stars 149 forks source link

Any way to do synchronous calls? #130

Closed Velocedge closed 5 years ago

Velocedge commented 5 years ago

Chrome's new release stops synchronous calls on onbeforeunload (FF to follow). We're using SOAP in our SCORM runtime and the 3rd party courses (SCO's) make the call to our SCORM API expecting them to return data from the web service. We were making the ajax call synchronously and now it won't work. Is there any way we can change the SOAP call so it appears synchronous to the functions the SCO is calling?

doedje commented 5 years ago

Which version of Chrome are you using?

doedje commented 5 years ago

I am closing this one... I will rephrase what browser builders are saying: DON’T USE SYNC, IT’S BAD..... rewrite your code to be event-driven..... it’s not that hard and future proof...