jquery - How to call a WebService using backbonejs -


i new backbonejs, , want call this webservice.

will me how call service using backbonejs.

try one. put code render function

formdata = {     north: "44.1",     south: "-9.9",     east: "-22.4",     west: "55.2",     lang: "de",     username: "demo" } $.ajax({     type: 'get',     contenttype: 'application/json',     url: "http://api.geonames.org/citiesjson",     datatype: "json",     data: formdata,     success: function(data) {         console.log(data);         //success handler     },     error: function(data) {         //error handler     } }); this.$el.html(yourviewtemplate); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -