Hi Paulin, 

Sorry for the late reply. .. TW has a basic callback based ajax utility 
built in: see: 
https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/utils/dom/http.js
usage can be seen here: 
https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js
Especially have a look how to use the "options-object"!

While not ideal, because this workflow is really old, difficult to read, 
write and understand, it should have the best browser compatibility 
<http://caniuse.com/#feat=xhr2>. .. So it's backwards compatible :/

Some time ago I found a good explanation about promises: 
http://www.html5rocks.com/en/tutorials/es6/promises/
and a basic ajax implementation using promises: 
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise#Example_using_XMLHttpRequest
promise browser support: http://caniuse.com/#search=promises

which will be superseded in the future by window.fetch() 
<https://davidwalsh.name/fetch>, which imo hasn't enough browser support 
yet. see. http://caniuse.com/#search=fetch

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d598a9e-e850-4084-8735-8670239c5eed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to