Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-15-2001, 11:39 AM   #1
Member (9 bit)
 
Join Date: May 1999
Location: Juana Diaz, PR
Posts: 378
Question Displaying shtml files locally

Recently I installed Windows XP Home in my system and with it Internet Explorer 6.0. I am having trouble displaying SHTML files locally recently. These SHTML files are just normal HTML with some special tags that are parsed by the web server before being sent to the client.

I design web pages and I need the ability to display pages with this extension. The browser displays them as text files, not as HTML. I tried creating a new file type with the shtml extension and defining it as a HTML file but the browser still displays it as plain text.

Many moons ago I had the same problem in Windows 95 and a prior (3.0? 4.0?) IE version and creating a new file type solved the problem.

Any suggestions?

[P.S. I know that SSI tags won't work locally]
__________________
Thanks.

Luis...
luisr is offline   Reply With Quote
Old 12-15-2001, 07:00 PM   #2
Member (13 bit)
 
Xayd's Avatar
 
Join Date: Jun 2000
Location: nowhere.com
Posts: 4,819
Send a message via AIM to Xayd
You'll have to have the server and whatever scripting engines you need running locally I would assume.
Xayd is offline   Reply With Quote
Old 12-15-2001, 07:45 PM   #3
Member (9 bit)
 
Join Date: May 1999
Location: Juana Diaz, PR
Posts: 378
I didn't have any server installed before. I don't need to parse the SSI tags, just need to view the page as a web page in the browser. Some of these SHTML files are framesets and due to this problem I can't test the pages locally.
luisr is offline   Reply With Quote
Old 12-15-2001, 08:53 PM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
An .shtml file is basically an .html file that has already been parsed. I just tried an .shtml page in my browser. What I did was File/Open/All Types/ click on .shtml file. and the openwith box pops up. Then I told it to open with IE and it worked fine. I am using IE 5.5 on W2K.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 12-15-2001, 10:10 PM   #5
Member (12 bit)
 
highrisemech's Avatar
 
Join Date: Jul 2001
Location: Philadelphia, Pennsylvania
Posts: 2,067
I'm not completly sure about this but I would think if you download the .htm
file then you should be able to either open it and view it with explorer or open,view and edit in your hypertext editor.
highrisemech is offline   Reply With Quote
Old 12-20-2001, 05:17 AM   #6
Member (6 bit)
 
Join Date: Nov 2001
Location: North East UK
Posts: 33
Send a message via AIM to Simfal Send a message via Yahoo to Simfal
SSI HTM or SHTML!

Hi, I know it's a while since you posted, but you might find this useful. I started using SSI back in march 2001. I used SHTML files in order to do this but later learned that search engines might penalise listings because of the dynamic properties that SHTML has to offer. I needed to use SSI within htm or HTML files. After scouring formums and other websites, someone gave the info I much needed.

Here's how.

Upload an .htaccess file to your websites route dir with the following contents;
AddType text/html .htm AddHandler server-parsed .htm

Create it in a text file and then rename it to .htaccess. You only need to have it in your route dir for it to work sitewide.

The SSI tag looks like this


If you prefer to use the extension html, just swap references to htm to html.
Simfal is offline   Reply With Quote
Old 12-20-2001, 04:55 PM   #7
Member (9 bit)
 
Join Date: May 1999
Location: Juana Diaz, PR
Posts: 378
You guys are drifting from the subject or don't fully understand my question. I am not downloading from a server. I am working with the file locally and need to display it as a web page, not as a text document. The browser is not considering it a web page for some reason.
luisr is offline   Reply With Quote
Old 12-20-2001, 05:04 PM   #8
Member (12 bit)
 
highrisemech's Avatar
 
Join Date: Jul 2001
Location: Philadelphia, Pennsylvania
Posts: 2,067
I know if you create a page in word and save it with the extensionn .htm
your in business. This applies to text documents.
highrisemech is offline   Reply With Quote
Old 12-20-2001, 07:17 PM   #9
Member (9 bit)
 
Join Date: May 1999
Location: Juana Diaz, PR
Posts: 378
Listen everyone.

The problem is not with creating pages. The problem is that Internet Explorer 6.0 in Windows XP Home is not recognizing the shtml extension as a web page when the page is viewed locally. I develop web sites and some pages include SSI and for that reason must have the shtml extension. Before I upload to the server I have to test locally and I am not able to do so because the browser will just display the HTML code as if it was a text file.
luisr is offline   Reply With Quote
Old 12-20-2001, 08:07 PM   #10
Member (12 bit)
 
highrisemech's Avatar
 
Join Date: Jul 2001
Location: Philadelphia, Pennsylvania
Posts: 2,067
Download Arachnifilia the free shareware program this will allow you to publish and view web pages also it give you the option to check the view in different browsers, by giving you the option of choosing which browser to open the file with. Sorry I can't help you with explorer 6.0 though. a lot of people
are having different problems with this particular browser. All I can say about that is right click on the explorer icon and check all the properties.
highrisemech is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

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



All times are GMT -5. The time now is 05:57 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2