ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 14th, 2005, 01:19 PM
mparker1113 mparker1113 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 254 mparker1113 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 29 m 48 sec
Reputation Power: 5
Simple Script doesn't work

Hi, I am new to coldFusion, and have been making changes to a previous programmers work.

I just created a cfm file in the same directory where other cfm files are working, but the display shows nothing of server variables (it is all shown in text).

Here is the code -- what could be wrong?
Code:
<html>
<cfoutput> 

Hello world, <br>
Today's date is #DateFormat(Now(), "mm/dd/yyyy")# 
</cfoutput>
</html>

Much thanks.

Reply With Quote
  #2  
Old June 14th, 2005, 01:30 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,655 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 30 m 17 sec
Reputation Power: 53
Are you saying that the code above just shows up as text in the browser when you run it? If so then the web server is not passing processing on to the CF engine. Confirm the file location, confirm the file extension, and confirm that other .cfm files work correctly.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old June 14th, 2005, 01:52 PM
mparker1113 mparker1113 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 254 mparker1113 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 29 m 48 sec
Reputation Power: 5
That's the thing: It is a cfm file, and is at the same location as other working cfm files.

Reply With Quote
  #4  
Old June 14th, 2005, 02:18 PM
Catfish Jones's Avatar
Catfish Jones Catfish Jones is offline
Paranoid User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Alberta, Canada
Posts: 340 Catfish Jones User rank is Sergeant Major (2000 - 5000 Reputation Level)Catfish Jones User rank is Sergeant Major (2000 - 5000 Reputation Level)Catfish Jones User rank is Sergeant Major (2000 - 5000 Reputation Level)Catfish Jones User rank is Sergeant Major (2000 - 5000 Reputation Level)Catfish Jones User rank is Sergeant Major (2000 - 5000 Reputation Level)Catfish Jones User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 6 h 37 m 22 sec
Reputation Power: 32
Within the same <cfoutput> block, try 4 = #3+1# to see if ColdFusion is actually parsing the file.

And I'm assuming your original script doesn't create any error messages at all?

Reply With Quote
  #5  
Old June 14th, 2005, 02:19 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,655 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 30 m 17 sec
Reputation Power: 53
Well if you can confirm that the file is in the same directory as other .cfm files that do run correctly, and can also confirm that it has a .cfm extension (and not a hidden .txt extension or something else), then I have no idea what the problem could be. Try deleting the file and recreating it. Also, what happens if you edit and run one of the existing .cfm files?

Reply With Quote
  #6  
Old June 15th, 2005, 11:29 AM
mparker1113 mparker1113 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 254 mparker1113 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 29 m 48 sec
Reputation Power: 5
Well, now I know the reason that "it wasn't working."

I was trying to render it using IE off from the directory, and wasn't making a call to it through the server....

(sheesh)
thanks )

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Simple Script doesn't work


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway