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
Post a Comment