Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10754

Refactor getServiceResult() method in miscAjaxFunctions.js

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • Trunk, Upcoming Branch
    • None
    • framework

    Description

      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

       

       

      Attachments

        Activity

          People

            adityasharma Aditya Sharma
            adityasharma Aditya Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: