You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Aditya Sharma (Jira)" <ji...@apache.org> on 2022/10/07 07:18:00 UTC

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

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