jQuery load Google Visualization API with AJAX

后端 未结 10 2087
栀梦
栀梦 2020-12-24 02:17

There is an issue that I cannot solve, I\'ve been looking a lot in the internet but found nothing.

I have this JavaScript that is used to do an Ajax request by PHP.

10条回答
  •  时光说笑
    2020-12-24 03:03

    I know this is an older post, but after some digging through the google.load docs, I found an async option in case you want to dynamically load the libs:

    http://code.google.com/apis/loader/

    function loadMaps() {
       google.load("visualization", "2", {"callback" : function(){ alert(4); }});
    }
    

提交回复
热议问题