Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > BOOK: Beginning HTML, XHTML, CSS, and JavaScript
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 11th, 2011, 11:43 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Angry unable to open html file in safari or firefox

i am unable to open html file i created in safari or firefox the file opened but just the code was displayed. I'm using safari 5.1.2
Reply With Quote
  #2 (permalink)  
Old December 11th, 2011, 01:46 PM
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi,

Have you checked the file extension is .html? (CTRL + click on the file then select get info - under the general section it should say Kind: HTML document.)

If you are using a text editor like TextEdit then it might have saved the file as a .txt or .rtf file (and if the file extensions are hidden on your mac it might not show as being a text or rtf file).

If you are using TextEdit, go to the TextEdit menu and select preferences. Then in the Open and Save section look for "When opening a file" and tick ignore rich text commands in HTML files option.

When you save the file you want to ensure that it has the .html extension (not .txt or .rtf). It may prompt you to ask if you want another extension saved at the end - in which case select use .html.

Hope that helps, if not let us know which editor you are using and we can try to help further.
Reply With Quote
The Following User Says Thank You to bitnap For This Useful Post:
asabhya (December 11th, 2011)
  #3 (permalink)  
Old December 11th, 2011, 02:08 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

thanks for your reply i figured out the problem.

save file as plain text with html extension.(lion won't allow you to that so it will keep .html.txt)

then go in finder change the extension to html

this is what i did

do you have any idea for not changing the extensions twice
Reply With Quote
  #4 (permalink)  
Old December 11th, 2011, 02:38 PM
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Ah, ok - I think there might be a bug in Lion (see https://discussions.apple.com/thread...rt=15&tstart=0)

Some people have said it has been fixed in the 10.7.2 update (I am still running 10.6.8 as I am waiting for some software I use a lot to be updated to work with Lion).

You could also try using TextWrangler, it is a free download from the App Store and probably a bit easier for editing HTML files: http://www.barebones.com/products/textwrangler/

Hope that helps...
Reply With Quote
  #5 (permalink)  
Old December 11th, 2011, 03:56 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Does TextWrangler comes with autocomplete, automatic indention and suggestive features
Reply With Quote
  #6 (permalink)  
Old December 12th, 2011, 08:59 AM
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default

No, it doesn't - it is the free version of a commercial program called BBEdit, which I believe has some of those features (http://www.barebones.com/products/bb...omparison.html).

But if you were using TextEdit, then the free TextWrangler is probably a step up from that.
Reply With Quote
  #7 (permalink)  
Old May 28th, 2013, 11:40 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem Opening html page

I'm very new to coding and I bought this book to teach myself how to make websites. I think I understand everything I've read so far but I can't get my code to open as a web page all it does it appear as code. I'm using a mac and have tried opening my code on safari, chrome, and firefox. I've written the code using word and text edit and I'm pretty sure I have the file saved as an html.
I don't think it's an issue with the code because when I use dreamweaver, the code appears as a webpage the way I want.
Any suggestions for what could be wrong? Thank you very much for your help
Reply With Quote
  #8 (permalink)  
Old May 29th, 2013, 03:34 PM
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi, you'll find it easier if you do not use Word for writing code.

You can use text edit, but there are a couple of options in the textedit preferences that you need to update:

Preferences: New document: Format: use plain text
Preferences: Open and save: Tick ignore rich text commands in HTML files

Hope that helps.
Reply With Quote
  #9 (permalink)  
Old May 30th, 2013, 12:17 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for your help, your instructions worked perfectly
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Unable to open include file. Allen_T 08 C++ Programming 4 July 7th, 2016 01:43 PM
Unable to open excel file thru vb.net sreeramulu Javascript 5 December 6th, 2013 04:19 AM
Firefox: open file, security problem il_betto Javascript 3 September 23rd, 2009 07:11 PM
Unable to open script file Pickle Dreamweaver (all versions) 1 October 31st, 2005 02:35 PM
unable to open flv file sentme_mail Flash (all versions) 0 December 27th, 2004 06:50 AM



All times are GMT -4. The time now is 02:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.