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.
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.