I\'m using javascript to include some content served up from a php file on another server. However, this other service can sometimes get flaky and either take a long time t
I think that the only way to do this is take the content of the file via ajax and then set a timer. If the request finishes before the timer you can evaluate the respons with eval(that's not the better solution anyway), otherwise you can stop the ajax request and write the error message.