samedi 1 août 2015

Passing local storage item to ajax

We have this code:

$.ajax({
            url:    localStorage.getItem("isntagram link"),
            // url: "http://ift.tt/1SrlseV",
            method: 'GET',
            dataType: 'jsonp',

Inside the local storage is a url to a JSON feed, the same link as the commented out url. The commented out code works but calling the same link from local storage is not. Thanks in advance

Aucun commentaire:

Enregistrer un commentaire