0

I'm on to working on my extra HTML and CSS pages for PSET5. I've run HTTP-SERVER, clicked on Port 8080 and selected Open where upon I get a directory tree and select the HTML file I want to run. Firstly when I make changes to the code and select save, the old code gets retained and loaded instead of the revision. I'm also right clicking on the HTML page file to try and run it, but the SERVE item is always greyed out.All I can do is go back to my still loaded page and hit refresh to run my page , but as mentioned, I don't get anything new loaded that reflects my new code. Any ideas ?

3
  • Try shift-refresh or ctrl-F5 to reload the sources. – DinoCoderSaurus Jul 10 '19 at 17:14
  • Sorry I don't understand..... what "Refresh" do you refer to ? I'm used to using the Shift key with other keys. Also the CTRL-F5 didn't work. Shutting down and going in did start displaying the refreshed page, however, I still get a greyed out SERVE menu item. I certainly don't want to have to reboot everything when I just want to save and Run an HTML page. I'll see if I can post a screen grab. – Joe Gancher Jul 12 '19 at 5:13
  • Of course I can't post images here cause I don't know how. Something about CTRL-G but it doesn't work. – Joe Gancher Jul 12 '19 at 5:18
1

Two things.

First, it sounds like your browser is aggressively caching the HTML, so when you load the page and it's old, try doing a hard-refresh. (hold down shift key and click the browser refresh button). That should force a fresh load.

Second, in the IDE, the "Serve" command only works for a directory, not a file, so try right-clicking on the folder name instead.

1
  • Caught that on you FB post. Than you. The thing is that I don't want to have to do a hard refresh every time I have this problem, which was every time I ran my script. Whatever was the problem, it has disappeared, save for the fact that I still see red error messages referencing files that aren't even in my code...particularly gif's. Anyhow... it works now at least. Thank you. – Joe Gancher Jul 13 '19 at 23:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .