Resume page automatically
11 posts
• Page 1 of 1
Hi to all,
I created an application where Firefox automatically starts in kioskmode loading a link on a server. If the network connection fails Firefox goes to the error page (Server not found) and remains there until someone manually reloads the page. I need to know how to make Firefox to resume the page automatically once the connection restarted. There is a plug-in/add-on? Thanks a lot -- gkuser ![]() Moving to Web Development.
What I would do is make a page that has nothing on it except:
1. a big iframe showing the page you actually want to see 2. a script that's in charge of periodically refreshing it I don't have any example code, but I think it would be fairly straightforward. Thanks for you reply, but I can't do the iframe reload, because
the link contain an web application, (home, news and other) inside more than one information. If I make an iframe reload the page, the user can't navigate inside the application. Thanks old way:
Use the main frame to run a script that checks if the connection is OK. When it fails raise a flag and when the connection is restored again then launch again the iframe with the home page. new way: Turn your page into a progressive web app that use service workers and all the new shiny stuff to control network state and use your own cache so the page works even without network connection. Thanks AlfonsoML,
we can't put all the information in cache ... But thanks for the idea, we need to think about. Thanks to all You don't need to put everything in cache, just the minimal to say "waiting for internet" and use the connection events to do its job
Thanks,
there are some simple examplea using connection events on the web to try a test? Thanks in any case
11 posts
• Page 1 of 1
Return to Web Development / Standards Evangelism Who is onlineUsers browsing this forum: No registered users and 1 guest |
![]() |