Your problem is this:
Code:
xmlhttp.open("GET",url,false);
From W3school:
Quote:
Using async=false is not recommended, but for a few small requests this can be ok.
Remember that the JavaScript will NOT continue to execute, until the server response is ready. If the server is busy or slow, the application will hang or stop.
|