I'm experimenting with a digital signage solution that just view a flash-player on repeat in Firefox (R-kiosk installed)
Now I run a that makes the player update every 2 hour (I use remote update)
The problem is that sometimes the router loses its connection. The browser only says "Your internetconnection is lost..." or something.. Is there any possibility to: check if there's internet connection (every 2 hour) and if it is, update. Else don't. I use php.
Thanks!
Use an ajax request in the background to keep connection alive or test:
$.ajax({
statusCode: {
404: function() {
alert("page not found");
}
}
});
You can use this portion of code to supplement your own ajax status detector. Just find out which code you get when connection is lost and build from there...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.