Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to create a site that works offline and online؟

What I have tried:

How to create a site that works offline and online؟
Posted
Updated 1-Oct-18 5:05am

Quote:
How to create a site that works offline and online؟

I think you need to go back and rethink this whole idea.
The idea of a website that works when the user is offline is ... umm ... difficult to comprehend, given that they need to be online to open it ...
 
Share this answer
 
Quote:
How to create a site that works offline and online؟

Since by principle, any internet site is online, the whole idea is wrong. Unless 'offline' have another meaning for you.
It is like trying to do a phone call without phone.
 
Share this answer
 
What you would need to do is to create a "local" web site. If this site is going to need any web server functionality (such as PHP, ASP.Net, SQL) you would also need to have a web server (eg Tomcat, IIS) installed on your local machine as well.

You could create scripting to check and see if internet-connectivity is present and if so you could connect to the online resource to sync or whatever it is that you need for your functionality.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900