LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-11-2014, 06:44 AM   #1
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 20

Rep: Reputation: Disabled
how to display an SHTML "page"?


I did a File=>Save Page while looking at a website in firefox.

This gave me an SHTML file and a folder, both carrying the "page" name.

I assumed I'd be able to re-display the web page by just doing File=>Open File on the shtml file in firefox but it doesn't work - I keep getting "What should firefox do with this file?"

How do I get the page to re-display?
 
Old 12-11-2014, 08:58 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by DougBain View Post
I did a File=>Save Page while looking at a website in firefox.

This gave me an SHTML file and a folder, both carrying the "page" name.

I assumed I'd be able to re-display the web page by just doing File=>Open File on the shtml file in firefox but it doesn't work - I keep getting "What should firefox do with this file?"

How do I get the page to re-display?
I guess the easiest way is to rename the file from *.shtml to plain *.html. The additional 's' in *.shtml is only an indicator for the server that this document is supposed to use SSI (server side includes). Once the document is transferred to the client, there is no special meaning of this any more.

When your browser gets the document from the web server, they "talk" HTTP among each other, and part of this protocol is the so-called Content-Type header. This header tells the browser the MIME type of a resource, which in this case would be "text/html".

But when you open a saved document from your local file system, there is no HTTP, and your browser has to guess the MIME type from the file extension. Obviously, *.shtml isn't recognized by Firefox, so just rename it.

[X] Doc CPU
 
1 members found this post helpful.
Old 12-11-2014, 12:12 PM   #3
DougBain
LQ Newbie
 
Registered: Oct 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
Red face Solved

Many thanks. As I thought, it was something simple I was missing
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." davcefai Debian 1 02-15-2014 03:11 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Suggestion: for "subscribed threads" & "top of page" buttons Old_Fogie LQ Suggestions & Feedback 7 07-10-2006 05:10 PM
Can't make Apache display anything diferent than the "test page" johann519 Linux - Networking 7 01-21-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration