[jira] [Created] (OFBIZ-10754) Refactor getServiceResult() method in miscAjaxFunctions.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-10754) Refactor getServiceResult() method in miscAjaxFunctions.js

Nicolas Malin (Jira)
Aditya Sharma created OFBIZ-10754:
-------------------------------------

             Summary: Refactor getServiceResult() method in miscAjaxFunctions.js
                 Key: OFBIZ-10754
                 URL: https://issues.apache.org/jira/browse/OFBIZ-10754
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: Trunk
            Reporter: Aditya Sharma
            Assignee: Aditya Sharma


In the current implementation, the following method makes all calls synchronously. In sync calls script stops and waits for the server to send back a reply before continuing. The method should provision overriding async value when required. The synchronous call should be used only when required. The method should either allow callbacks to be passed or should return promise to perform dependent tasks.

Refer:

[https://stackoverflow.com/questions/20209097/what-is-the-difference-between-asyncfalse-and-asynctrue-in-jquery-ajax]

[https://www.thoughtco.com/use-asynchronous-or-synchronous-ajax-2037228]

[https://www.aspsnippets.com/Articles/Difference-between-Synchronous-Sync-and-Asynchronous-Async-Request-Call-in-AJAX.aspx]

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)