Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > html to shtml

Reply
Thread Tools

html to shtml

 
 
Gary
Guest
Posts: n/a
 
      01-09-2007

Hello,

I recently added a small script anippet to my user form
to include the user's IP address in the form return. It also displays
the user's IP in a read-only text box.

The snippet is this:

<input type="text" name="ipaddr" value="<!--#echo var="REMOTE_ADDR"-->"
readonly>

The author of the script advised changing the web-page extention from
"html" to "shtml" and making sure that SSI was enabled at a server
level. My SSI was in fact, turned off at server level, but I did enable
it as per instructions.

Now, IE6 will easily display the "shtml" page as it should be displayed,
with the read-only text box showing IP number as indicated.

However, Opera and Firefox (most recent versions) display the source
code of the SHTML page, instead of rendering the page properly.

I am not familiar with the nuances of SHTML. Is there any special
formatting needed for FF & Opera to render this properly?

thanks for any assistance....

Gary
 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      01-09-2007
Gary wrote:

> However, Opera and Firefox (most recent versions) display the source
> code of the SHTML page, instead of rendering the page properly.


Opera and Firefox *are* displaying the page properly. IE is displaying it
incorrectly.

Your server is misconfigured. It is returning a MIME type of "text/plain"
instead of "text/html". Please consult your server's manual for details of
how to remedy this.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
 
Leif K-Brooks
Guest
Posts: n/a
 
      01-09-2007
Gary wrote:
> Now, IE6 will easily display the "shtml" page as it should be displayed,
> with the read-only text box showing IP number as indicated.
>
> However, Opera and Firefox (most recent versions) display the source
> code of the SHTML page, instead of rendering the page properly.
>
> I am not familiar with the nuances of SHTML. Is there any special
> formatting needed for FF & Opera to render this properly?


It's not a client-side issue. Your server should be handling the SSI.
Make sure that it's supported and enabled.
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      01-09-2007
Scripsit Gary:

> I recently added a small script anippet to my user form
> to include the user's IP address in the form return.


Just for the fun of it, I presume. There are very few useful things you
could do that way, at least if illegal things aren't counted.

> The author of the script advised changing the web-page extention from
> "html" to "shtml" and making sure that SSI was enabled at a server
> level.


That's correct, though the extension thing is server-dependent.

> However, Opera and Firefox (most recent versions) display the source
> code of the SHTML page, instead of rendering the page properly.


Try posting the URL. It's perhaps not sufficient, but it's a start in giving
information about the specific problem.

> I am not familiar with the nuances of SHTML. Is there any special
> formatting needed for FF & Opera to render this properly?


No. This sounds a bit mysterious, but if you have really tested it using
exactly the same URL, then the problem is in the request headers that the
browser sends. Or does you page try to do some browser-sniffing,
intentionally sending different versions to different browsers?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
html shtml Helpful person HTML 9 07-21-2009 08:51 PM
Re: html shtml Helpful person HTML 0 07-20-2009 06:06 PM
Differences between HTML,SHTML,XML etc. - resizing images - dial-up simulation The Eclectic Electric HTML 4 09-11-2005 09:12 AM
How to get VS IDE to recognize .shtml docs as html Kenneth Baltrinic ASP .Net 2 11-20-2003 01:33 PM
EXEC CGI Works Only with .SHTML? Not with .HTML? vertigo HTML 1 06-28-2003 08:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57