views:

37

answers:

1

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?

+1  A: 

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.

Darin Dimitrov