javascript - Jsonp request with MooTools -
i'm studying javascript , right i'm working json files , mootools. problem work json on other domains i'm trying use jsonp. i'm trying write lines of code can't understand i'm doing because i'm not programmer (usually write few lines of code in c# without working json, xml or kind of data).
that's code:
function getsearchvalue() { var searchvalue = getelementbyid('campo').value; var firstparturl = "http://m.airpim.com/json/public/search?"; var lastparturl = "&k=&e=1"; var finalurl = firstparturl + searchvalue + lastparturl; return finalurl; } var myrequest = new request.jsonp ( {url: getsearchvalue(), oncomplete: function(data) { // here should save json data in 1 array } }).send();
the data receive json object? if yes how can save array ... mean what's mootools syntax parsing?
Comments
Post a Comment