[ 
https://issues.apache.org/jira/browse/OFBIZ-10754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aditya Sharma updated OFBIZ-10754:
----------------------------------
    Labels: Hacktoberfest  (was: )

> 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, Upcoming Branch
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>            Priority: Trivial
>              Labels: Hacktoberfest
>
> 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
(v8.20.10#820010)

Reply via email to