Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Notes: On changes not showing up.

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> Articles
View previous topic :: View next topic  
Author Message
phil karras
Senior Member
Senior Member


Joined: 15 Jul 2002
Posts: 1750
Location: MD

PostPosted: Tue Aug 27, 2002 7:29 am    Post subject: Notes: On changes not showing up. Reply with quote

Here are a few very common errors for this kind of problem:

First: remember to SAVE the changes. Just because you changed the file in notepad does NOT mean they can be picked up by the browser. The Browser can only pick up from a file on the drive as it has been saved.

Second: Click on the refresh button on your browser once you have saved the file in notepad. You must FORCE the refresh.

Third: Make sure you are loading the file you are editing! This is a common problem, we THINK we are viewing the file we are editing only to find out some time later that they are two different files! One in the browser test/index.html and a different one in the editor: test/bak/index.htm.

When in doubt: create a new file and edit it to be sure you are doing things correctly. You should be able to see the changes in a simple HTML file. Add a new title, or something.

Hope one of those helps.
_________________
Phil K
Circle Software Consulting
Test website: http://cs.yrex.com/
Guidelines for Posting: http://jsworkshop.com/posting.html
IHBAAA = It Has Been Asked And Answered
KISS: http://jsworkshop.com/bb/viewtopic.php?t=508
Back to top
View user's profile Send private message Visit poster's website
sohnee
Senior Member
Senior Member


Joined: 17 Jul 2002
Posts: 2054
Location: UK

PostPosted: Fri Feb 11, 2005 4:38 am    Post subject: Reply with quote

If this problem occurs when you load up your solution to the web - it may be that your browser is caching the pages.

This can be prevented in various ways, but a HTML method would be:

Code:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Cache-Control" content="no-cache">


Server side methods are also available and are typically more reliable.
_________________
I also work on... Steve Fenton's Blog and contribute to The Enhance PHP Unit Testing Framework
Back to top
View user's profile Send private message Visit poster's website
phil karras
Senior Member
Senior Member


Joined: 15 Jul 2002
Posts: 1750
Location: MD

PostPosted: Tue Nov 22, 2011 3:40 am    Post subject: Reply with quote

HINT: While testing include the meta-tag line:
Code:

<meta http-equiv="Pragma" content="no-cache">

in your HTML file to force no caching of the page, meaning the page re-loads every time you test it.

HINT 2: If you're developing a DB related set of pages make sure the above meta-tag is in all html files since you do NOT want people's browsers caching older pages. We want them to be "forced" to get the latest up-to-date page from the DB.

Thanks to Sohnee for the reminder!
_________________
Phil K
Circle Software Consulting
Test website: http://cs.yrex.com/
Guidelines for Posting: http://jsworkshop.com/posting.html
IHBAAA = It Has Been Asked And Answered
KISS: http://jsworkshop.com/bb/viewtopic.php?t=508
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> Articles All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.