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
Resume page automatically
- DanRaisch
- Moderator
- Posts: 127249
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Resume page automatically
Moving to Web Development.
-
- Posts: 270
- Joined: January 20th, 2015, 12:29 pm
Re: Resume page automatically
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.
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.
-
- Posts: 7
- Joined: May 4th, 2017, 2:23 am
Re: Resume page automatically
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
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
-
- Posts: 387
- Joined: September 6th, 2006, 1:39 pm
- Contact:
Re: Resume page automatically
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.
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.
-
- Posts: 7
- Joined: May 4th, 2017, 2:23 am
Re: Resume page automatically
Thanks AlfonsoML,
we can't put all the information in cache ...
But thanks for the idea, we need to think about.
Thanks to all
we can't put all the information in cache ...
But thanks for the idea, we need to think about.
Thanks to all
-
- Posts: 387
- Joined: September 6th, 2006, 1:39 pm
- Contact:
Re: Resume page automatically
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
-
- Posts: 7
- Joined: May 4th, 2017, 2:23 am
Re: Resume page automatically
Thanks,
there are some simple examplea using connection events on the web to try a test?
Thanks in any case
there are some simple examplea using connection events on the web to try a test?
Thanks in any case
-
- Posts: 7
- Joined: May 4th, 2017, 2:23 am
-
- Posts: 7
- Joined: May 4th, 2017, 2:23 am