I’m a bit new to programming and I’ve been having a problem trying to open an html document as if it was opened through the page itself. I’m thinking I need to create a proxy for my browser whenever it opens the file, but I’m not certain.
The reason I need this is because when the file is stored locally it conflicts with how it runs and leaves somethings.
EDIT: Solved, my site uses AJAX, making it impossible for what I want.
Storing websites that you did not author for later offline use can be challenging. This may or may not work depending on the scripts being used. Your best bet is to check the file for absolute paths, and change them to relative if possible.
The same goes for all javascript and CSS.
This is assuming there isn’t any 2 way communication with javascript after the page loads. If it uses any AJAX or polling you are basically screwed.
Any reason you need this offline? Is it just data, or data plus UI interaction?
If only data, you may be able to save it in another format for later viewing.
If you need the graphical interaction, or you need it to update once online again you may be out of luck.