jQuery load Google Visualization API with AJAX

后端 未结 10 2228
栀梦
栀梦 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:04

    I know this is an old thread but this might help others.
    I've run into the same problem now and it is very similar (if not the same) I had earlier with a CMS:

    code on page:

    part of the script loaded with ajax:

    
    

    The result is a page with the text "hello" that looks like it is still being loaded. This is caused by the document.write method. Since the script is loaded into an already finished and closed document, the browser opens a new one and I suppose the javascript engine is waiting for the next line of code that will never arrive as opening a new document deleted the one being executed.

提交回复
热议问题