Skip to main content
July 4, 2009
Question

Problem with my .cfm files in Browsers [not refreshing]

  • July 4, 2009
  • 2 replies
  • 4943 views

Hello,

I'm taking the steps to learn about CF, and I am watching some tutorials to do so.


Unfortunately my files seem to not be working.

I have 2 files: HelloWorld.cfm and HelloWorld2.cfm that are not working correctly in the browser.

They both show the initial data that had been entered:


<body>

<h1>My First ColdFusion Page</h1>

<cfset firstname="David">

<cfoutput>My name is #firstname# !! </cfoutput>

</body>

But no matter what I do to change the data in the .cfm file - it will display as the original 'My name is David !!'

if i change the value of 'firstname' - it wont matter.

I've tried refreshing the browser, opening the files up in multiple text editors and making edits, and even opened the files up in a fresh browser [I hadnt used safari yet].

Nothing works.

If I create a new .cfm file - everything works fine...

Any ideas?

[localhost setup with XAMPP, Coldfusion 8 Installed, and originally using Eclipse w/ CFEclipse, also tried Textmate]

This topic has been closed for replies.

2 replies

July 6, 2009

It actually sounds more like it might be that your browser is reading from it's cache rather than actually what the Server sends.  Trying deleting your cache and cookies and then restart the browser and try again.  I have sat for 20 minutes before trying to figure out why something wasn't working when it ended up being the cache.

July 6, 2009

@ xhearttonfiree43x

I thought it might be that too [ I've had the same thing happen before] - but I cleared the cache of both browsers, and they still serve up the same data from the .cfm file.

Its as if the data was processed once - and will keep spitting out the same result regardless of whether the code is changed.

Thanks for the suggestion tho, I've totally been there - more than once

Inspiring
July 6, 2009

It sounds like your Apache server has not been configured to serve CF pages.  See the CF docs for help changing your configuration.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=configuring_08.html#1171424

July 6, 2009

@ JR "Bob" Dobbs

It processes the data inside the .cfm file - it just won't change once I edit the code around for [now 3] different .cfm files.

Though - I am checking that documentation... I'm pretty new with these things - so it's taking me a little while.

Thanks for the suggestion, I'll let you know what I find out