Michael Caigoy | I'm developing a system intended to update content and handle errors, solely from the client side, via AJAX. The DMP is only responsible for loading a web page from a fixed path. The page itself loads content into an iframe, and then runs a Javascript interval to periodically check the date headers of a watched file which will indicate whether the content within the iframe needs to be refreshed. In the event that the periodic request fails, and the XMLHttpRequest returns an HTTP code other than 200 (success), the page will redirect to an error page stored locally on the DMP or other computer/applicance. This method has worked within most popular browsers. However, it has not worked on the DMP. Further tests have revealed that, unlike the other browsers tested, the DMP's browser is not returning an error code, and continues to return 200 on each check even with the loss of a network connection. Beyond the specific methods of error handling I've described, our goal is to have the DMP recognize that it's lost a network connection, and respond by loading a local page. We've tried the Failover URL setting within the DMP's administrative interface, but as far as we can tell, it's only triggered when the DMP is specifically given the command to load the primary URL. This is not triggered by periodic checks of a URL performed by Javascript within the browser. |