I am trying to get an api cross browser using jsonp. This was working fine, 
now all of a sudden I get this error SyntaxError: missing ; before statement

It gets the request using firefox in the network dev tools as 200 but it's 
returning it to the console log to show this SyntaxError: missing ; before 
statement

I can't understand it..pls help

         var url = 
"http://api.ean.com/ean-services/rs/hotel/v3/list?callback=JSON_CALLBACK";;

$http.jsonp(url)
   .success(function(response){
       console.log(response.data);
});

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to