Reputation: 249
Is there a possibility to load Google Chart API asynchronously like Google Maps API? I've tried out two different things:
$.getJSON('http://www.google.com/jsapi');
and
$.getScript('http://www.google.com/jsapi');
both are not working. Any suggestions?
Upvotes: 0
Views: 1177
Reputation: 1039468
Due to same origin policy restrictions you cannot perform AJAX requests to distant domains which explains why getJSON
doesn't work. As far as getScript
is concerned there shouldn't be any problems.
Upvotes: 1