Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 2nd, 2004, 08:09 PM
Registered User
 
Join Date: Nov 2004
Location: Oosterzele, Oost-Vlaanderen, Belgium.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Invalid .html-file while using TextEditor (Mac)

Hi,

I'm having trouble uploading source code, which I've written in TextEditor for Mac OS X. In the first chapter of Jon Duckett, I followed the advice to save the file in quotes (page 19), because TextEditor saves with the extension rtf if saved without quotes.
When uploading this file, the browser displays the source code instead of the body contents.
When checking my html code, the result is correct when I copy the code into an exercise as below :

http://www.cwru.edu/cgi-bin/tutorial...grader2?3@1@BH

Which program should I rather use in order to be able to upload my html as it should be?

Thanks to anyone who can help me

  #2 (permalink)  
Old November 2nd, 2004, 09:35 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

What is the extension of the file on the server when you go to view it?

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
The two rules: 1) I am always wrong. 2) If I'm right, refer to rule number 1.
  #3 (permalink)  
Old November 3rd, 2004, 11:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Oklahoma City, Oklahoma, USA.
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

On the mac side I am a big fan of BBEdit.
http://www.barebones.com

I also noticed in TextEditor when you go to save there is a show extension checkbox at the bottom you should be able to see the extension and just replace the rtf extension.

Mike
  #4 (permalink)  
Old May 21st, 2009, 06:30 PM
Registered User
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Plain Text

The problem you're having is that by default, TextEdit saves your documents in Rich Text Format. To save with a different extension, you need to make your text plain text. Press shift command (the one with with the Apple logo or clover leaf) and t. Or, go to "Format" in the menu bar and click on "Make Plain Text".

Hope this helps!
-Danny
  #5 (permalink)  
Old June 24th, 2009, 01:45 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

While we're on the topic, it's important to know exactly what extension your files are receiving and Windows does not let you see them by default. Go to Folder Options and locate a list of checkboxes inside a ListView. One of the checkboxes is something like "Hide extensions for known file types". Uncheck it.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid report file path rwalker Crystal Reports 1 January 28th, 2009 10:49 AM
Ch12 TextEditor p668 tonyjeffs BOOK: Ivor Horton's Beginning Visual C++ 2005 1 December 15th, 2007 08:03 AM
Download mov file in MAC OS JeromeQin Classic ASP Professional 1 July 20th, 2006 05:00 AM
Invalid report file path cathiec Crystal Reports 0 June 30th, 2005 10:10 AM
write file to mac OS using ASP Lamox Classic ASP Basics 0 December 21st, 2004 06:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.