I stumbled upon Fetch API today. It’s this simple: fetch(url) .then((resp) => resp.json()) // Transform the response object into json .then(function(data) { // Do what the hell I want to do with received JSON data }) })fetch(url) .then((resp) => resp.json()) // Transform the response object into json .then(function(data) { // Do what the hell I […]
Tag: ajax
Sencha Touch: Accessing a remote API that is under Basic Authentication
Posted on under Coding & Tech, Tutorials — 2 CommentsST makes it pretty straightforward to access webservices or APIs through its various data proxies and Ext.Ajax. But consuming an API protected under basic authentication can be tricky. Both data proxies and Ext.Ajax provide setUsername() and setPassword() methods, and they work fine on most browsers. But in my experience using these methods, I had big […]
Mobile App Development: Lessons Learned
Posted on under Coding & Tech — 1 CommentSencha Touch is a great framework, but requires a LOT getting used to. The officials Docs do not always have the answer you’re looking for. ST forums and stackoverflow are excellent resources to consult when in need. If you are a web developer, DO NOT waste time learning Objective-C or Java for creating native iOS […]
Tutorial: AJAX with jQuery
Posted on under Coding & Tech, Tutorials — 1 CommentjQuery is a very powerful JavaScript framework, and to put in their own terms, is The Write Less, Do More JavaScript library. jQuery’s slogan indeed holds true to its claim, as you’ll discover as soon as you start coding using jQuery. Although jQuery has an extensive set of API and a collection of many functions […]