Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  29 Oct 2015, Konstantin Olchanski, Info, synchronous ajax deprecated 
    Reply  29 Oct 2015, Amy Roberts, Info, synchronous ajax deprecated 
       Reply  30 Oct 2015, Stefan Ritt, Info, synchronous ajax deprecated 
          Reply  18 Nov 2015, Amy Roberts, Info, synchronous ajax deprecated 
             Reply  18 Nov 2015, Konstantin Olchanski, Info, synchronous ajax deprecated 
                Reply  19 Nov 2015, Amy Roberts, Info, synchronous ajax deprecated 
       Reply  02 Nov 2015, Konstantin Olchanski, Info, synchronous ajax deprecated 
          Reply  17 Nov 2015, Konstantin Olchanski, Info, synchronous ajax deprecated 
             Reply  18 Nov 2015, Amy Roberts, Info, synchronous ajax deprecated 
                Reply  26 Nov 2015, Konstantin Olchanski, Info, browser compatibility test: synchronous ajax deprecated 
                Reply  27 Nov 2015, Konstantin Olchanski, Info, synchronous ajax deprecated 
Message ID: 1130     Entry time: 30 Oct 2015     In reply to: 1129     Reply to this: 1137
Author: Stefan Ritt 
Topic: Info 
Subject: synchronous ajax deprecated 
> We're using mhttpd for calls that end up working better with asynchronous requests, and we've built up sort of a parallel, asynchronous library using javascript Promises.
> 
> The Promises (which are in the ES6 spec) have worked incredibly well for building well-behaved, sequential calls to mhttpd.  Personally, I also find their syntax much easier to wrap my
> head around, especially compared to callbacks.
> 
> I'd be happy to add these functions to midas.js if there's general interest. 

Why don't you post the functions here so that we can have a look? They don't have to be incorporated into mhttpd.js necessarily, but could live in a separate file, the people can choose which one to use.

Stefan
ELOG V3.1.4-2e1708b5