Fetch API – was I living on Mars?

Posted on under Coding & Tech Leave a comment

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 […]

Sencha Touch: Accessing a remote API that is under Basic Authentication

Posted on under Coding & Tech, Tutorials 2 Comments

ST 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 […]

Tutorial: AJAX with jQuery

Posted on under Coding & Tech, Tutorials 1 Comment

jQuery 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 […]