Re: [newbie] web site displays source instead of HTML

2003-07-19 Thread Graham Watkins
Curt Tresenriter wrote:
On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:

Curt Tresenriter wrote:

I'm trying to access a web site - an audio archive - but it's only
displaying the code.
Konq, Galeon,Opera - doesn't matter.
I would have suspected the web site itself, but for other folks on the
list it is displaying properly , links are accessible etc. So it must be
hereright?
What could it be?
thanks,
Curt
Give us the URL then we can all have a look - might be able to give you 
an opinion that's worth something then.
Here it is:

http://www.angelfire.com/or2/awakingdream/realNeville


Hmm, most curious.  Opened it in Mozilla and all I got was text - at 
first glance, the html seemed to be all over the place and it made me 
wonder if it was due to it's being a poorly written page - two html 
and body tags for a start.

Saved it to my 'puter and then opened it using Konqueror and it 
displayed as a web page. The link to the rainforest page worked though 
the rm file (some kind of audio format that realplayer doesn't 
recognise?) links didn't.

Someone on this thread mentioned that it displayed in IE6 yet I don't 
see any alien code that might appear had it been written with Word or 
Frontpage.

You could e-mail the site to tell them that there's something wrong with 
the page (and if it isn't browser platform independent then there *is* 
something wrong with it) or if you are a web designer with spare time on 
your hands, you could offer to rewrite the page for them.  Then again 
you could take the easy way out and view it using Konqueror.

Hope this helps (though I can't see how).

--
Graham Watkins
For me, morning begins when I realize that the soft warm body curled up 
next to me is a cat. (Kinky Friedman - Frequent Flyer)

Registered Linux user number 265254  http://counter.li.org





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [newbie] web site displays source instead of HTML

2003-07-19 Thread Frankie
Nope:

[EMAIL PROTECTED] postfix]# cat /etc/httpd/conf/commonhttpd.conf |
grep DefaultType
# DefaultType is the default MIME type the server will use
for a document
DefaultType text/plain


Sames as yours.

regards

Franki

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Todd
Slater
Sent: Saturday, 19 July 2003 12:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] web site displays source instead of
HTML


Frankie,

This is getting interesting because the link you provided
wrapped in my
mail so I didn't get the .txt extension; however, dillo
opened it up
as if it were HTML. Only after adding the .txt did dillo
display the
source. Same with firebird.

I found in /etc/httpd/conf/commonhttpd.conf (line 121):

# DefaultType is the default MIME type the server will use
for a document
# if it cannot otherwise determine one, such as from
filename extensions.
# If your server contains mostly text or HTML documents,
text/plain is
# a good value.  If most of your content is binary, such as
applications
# or images, you may want to use application/octet-stream
instead to
# keep browsers from trying to display binary files as
though they are
# text.
#
DefaultType text/plain

Is what I have; I wonder if yours has text/html?

Todd



On Sat, 19 Jul 2003 06:38:44 +0800
Frankie [EMAIL PROTECTED] wrote:


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-19 Thread Anne Wilson
On Friday 18 Jul 2003 10:37 pm, Bob Read wrote:
 Just add .htm  (no quotes) and you get the page.

Out of curiosity, I did, but I only got 'the URL is not valid and 
cannot be loaded'.

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Graham Watkins
Curt Tresenriter wrote:
I'm trying to access a web site - an audio archive - but it's only
displaying the code.
Konq, Galeon,Opera - doesn't matter.
I would have suspected the web site itself, but for other folks on the
list it is displaying properly , links are accessible etc. So it must be
hereright?
What could it be?
thanks,
Curt
Give us the URL then we can all have a look - might be able to give you 
an opinion that's worth something then.

--
Graham Watkins
For me, morning begins when I realize that the soft warm body curled up 
next
to me is a cat. (Kinky Friedman - Frequent Flyer)

Registered Linux user number 265254  http://counter.li.org





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Curt Tresenriter
On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:
 Curt Tresenriter wrote:
  I'm trying to access a web site - an audio archive - but it's only
  displaying the code.
  Konq, Galeon,Opera - doesn't matter.
  
  I would have suspected the web site itself, but for other folks on the
  list it is displaying properly , links are accessible etc. So it must be
  hereright?
  What could it be?
  thanks,
  Curt
  
 
 Give us the URL then we can all have a look - might be able to give you 
 an opinion that's worth something then.
Here it is:

http://www.angelfire.com/or2/awakingdream/realNeville
-- 
Registered Linux User #299730
Registered Machine #2046
*~*~*~*~*~*~*~*~60.51518 N, 150.79705 W*~*~*~*~*~*~*~*~*~*~*~*~*~*~


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Todd Slater
On Fri, Jul 18, 2003 at 01:43:33PM -0500, Curt Tresenriter wrote:
 On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:
  Curt Tresenriter wrote:
   I'm trying to access a web site - an audio archive - but it's only
   displaying the code.
   Konq, Galeon,Opera - doesn't matter.
   
   I would have suspected the web site itself, but for other folks on the
   list it is displaying properly , links are accessible etc. So it must be
   hereright?
   What could it be?
   thanks,
   Curt
   
  
  Give us the URL then we can all have a look - might be able to give you 
  an opinion that's worth something then.
 Here it is:
 
 http://www.angelfire.com/or2/awakingdream/realNeville

It has no extension (.html, .htm, .shtml, .php etc.). It's not a
directory, so it just gets displayed as text.

HTH,
Todd

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Brant Fitzsimmons
Curt Tresenriter wrote:

On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:
 

Curt Tresenriter wrote:
   

I'm trying to access a web site - an audio archive - but it's only
displaying the code.
Konq, Galeon,Opera - doesn't matter.
I would have suspected the web site itself, but for other folks on the
list it is displaying properly , links are accessible etc. So it must be
hereright?
What could it be?
thanks,
Curt
 

Give us the URL then we can all have a look - might be able to give you 
an opinion that's worth something then.
   

Here it is:

http://www.angelfire.com/or2/awakingdream/realNeville
 

On my Mandrake box: it displays the source in Opera, Mozilla, Firebird, 
Konqueror.

On my Windows 2000 box: it works in IE6 and doesn't work in Mozilla or 
Firebird.

Is there code in there,  specific to IE,  that won't allow the others to 
render the page?

--
Brant Fitzsimmons
[EMAIL PROTECTED]

Liberty means responsibility. That is why most men dread it.
-George Bernard Shaw, Man and Superman (1903)
Maxims for Revolutionists



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Curt Tresenriter
On Fri, 2003-07-18 at 15:22, Todd Slater wrote:
 On Fri, Jul 18, 2003 at 01:43:33PM -0500, Curt Tresenriter wrote:
  On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:
   Curt Tresenriter wrote:
I'm trying to access a web site - an audio archive - but it's only
displaying the code.
Konq, Galeon,Opera - doesn't matter.

I would have suspected the web site itself, but for other folks on the
list it is displaying properly , links are accessible etc. So it must be
hereright?
What could it be?
thanks,
Curt

   
   Give us the URL then we can all have a look - might be able to give you 
   an opinion that's worth something then.
  Here it is:
  
  http://www.angelfire.com/or2/awakingdream/realNeville
 
 It has no extension (.html, .htm, .shtml, .php etc.). It's not a
 directory, so it just gets displayed as text.
 
 HTH,
 Todd
 
 
 __
I don't get it 
If it wasn't saved as *.html even IE wouldn't display it as HTML, right?

The html at the top of the page is what a browser uses to identify it
as an html page.
Would you clarify what you're saying?
Thanks,
Curt
-- 
Registered Linux User #299730
Registered Machine #2046
*~*~*~*~*~*~*~*~60.51518 N, 150.79705 W*~*~*~*~*~*~*~*~*~*~*~*~*~*~


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Bob Read
Just add .htm  (no quotes) and you get the page.

Curt Tresenriter wrote:
On Fri, 2003-07-18 at 15:22, Todd Slater wrote:

On Fri, Jul 18, 2003 at 01:43:33PM -0500, Curt Tresenriter wrote:

On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:

Curt Tresenriter wrote:

I'm trying to access a web site - an audio archive - but it's only
displaying the code.
Konq, Galeon,Opera - doesn't matter.
I would have suspected the web site itself, but for other folks on the
list it is displaying properly , links are accessible etc. So it must be
hereright?
What could it be?
thanks,
Curt
Give us the URL then we can all have a look - might be able to give you 
an opinion that's worth something then.
Here it is:

http://www.angelfire.com/or2/awakingdream/realNeville
It has no extension (.html, .htm, .shtml, .php etc.). It's not a
directory, so it just gets displayed as text.
HTH,
Todd
__
I don't get it 
If it wasn't saved as *.html even IE wouldn't display it as HTML, right?

The html at the top of the page is what a browser uses to identify it
as an html page.
Would you clarify what you're saying?
Thanks,
Curt


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
--
--
Bob Read  // Registered Linux user #287118
http://www.cyberhymnal.org/htm/b/e/bestill.htm
Soli Deo Gloria-Solus Christus-Sola Gratia-Sola Fide-Sola Scriptura

The Church of The Master [Baptist]
Providence, Rhode Island
http://users.ids.net/~bobread/cotm.htm

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Todd Slater
On Fri, 18 Jul 2003 16:08:02 -0500
Curt Tresenriter [EMAIL PROTECTED] wrote:

 On Fri, 2003-07-18 at 15:22, Todd Slater wrote:
  On Fri, Jul 18, 2003 at 01:43:33PM -0500, Curt Tresenriter wrote:
   On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:
Curt Tresenriter wrote:
 I'm trying to access a web site - an audio archive - but it's
 only displaying the code.
 Konq, Galeon,Opera - doesn't matter.
 
 I would have suspected the web site itself, but for other
 folks on the list it is displaying properly , links are
 accessible etc. So it must be hereright?
 What could it be?
 thanks,
 Curt
 

Give us the URL then we can all have a look - might be able to
give you an opinion that's worth something then.
   Here it is:
   
   http://www.angelfire.com/or2/awakingdream/realNeville
  
  It has no extension (.html, .htm, .shtml, .php etc.). It's not a
  directory, so it just gets displayed as text.
  
  HTH,
  Todd
  
  
  ___
  ___
 I don't get it 
 If it wasn't saved as *.html even IE wouldn't display it as HTML,
 right?
 
 The html at the top of the page is what a browser uses to identify
 it as an html page.
 Would you clarify what you're saying?
 Thanks,
 Curt

I don't know the technical reasons, but yes, the extension has something
to do with what happens with the file. This is why you have to add
certain extensions to relate them to their mime-types in Apache config.
That's why when you click a link to any type of file, the server needs
to know what type it is to send that to the browser. (So the browser
knows what to do with it.)

AFAIK, if a file doesn't have any extension, it just displays the file
as text, just as if it had a .txt extension. If it is an unknown file
type (to the server), the user is generally prompted to save the file.

However, it is interesting that you say it works for other folks.
Internet Explorer, I presume? If you look at the Page Info in Mozilla or
Firebird it says it's text/plain. So while this may be a feature of
IE, I would say the problem is with the page and not the browsers you've
tried. They are doing just what they are supposed to by rendering it as
text.

Somebody with a better understanding of mime-types and document headers
can probably tell you the *real* reason :) If the page has a contact,
I'd email him or her about it.

(As a workaround, just save it with a .html extension and open it
locally since the links seem to be absolute paths.)

Todd

-- 
If those in charge of our society--politicians, corporate executives,
and owners of press and television--can dominate our ideas, they will
be secure in their power. They will not need soldiers patrolling the
streets. We will control ourselves. -Howard Zinn

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Todd Slater
On Fri, 18 Jul 2003 16:08:02 -0500
Curt Tresenriter [EMAIL PROTECTED] wrote:

 I don't get it 
 If it wasn't saved as *.html even IE wouldn't display it as HTML,
 right?

It probably wouldn't open it if it were saved and opened locally,
probably IE thinks since it's http:// it must be html.

BTW, the page code is not valid, but that doesn't have anything to do
with this problem.

html
head
titleNeville Audio Archive/title
/head


body
html

body


Todd

-- 
Anybody but a Republican or Democrat 2004

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [newbie] web site displays source instead of HTML

2003-07-18 Thread Frankie
I can tell you also that if you upload a file with the name
myfile.txt to your server
and that file contains HTML tags..

IE will render them, most all others we tried will display the source text..

The only way we could get IE to display the page's source code..
was to insert this into the top of the page:

plaintext

only IE had this problem.. so it obviously doesn't care about the extension.
If the page has disernable tags, IE will render them...

An example of a page to demonstraite this:
http://htmlfixit.com/tutes/html_tables_bring_order_to_chaos_resources/table1
.txt

Its part of a tute on HTML tables for HTML newbies...


regards

Franki
http://htmlfixit.com



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Todd Slater
Sent: Saturday, 19 July 2003 5:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] web site displays source instead of HTML


On Fri, 18 Jul 2003 16:08:02 -0500
Curt Tresenriter [EMAIL PROTECTED] wrote:

 On Fri, 2003-07-18 at 15:22, Todd Slater wrote:
  On Fri, Jul 18, 2003 at 01:43:33PM -0500, Curt Tresenriter wrote:
   On Fri, 2003-07-18 at 13:28, Graham Watkins wrote:
Curt Tresenriter wrote:
 I'm trying to access a web site - an audio archive - but it's
 only displaying the code.
 Konq, Galeon,Opera - doesn't matter.

 I would have suspected the web site itself, but for other
 folks on the list it is displaying properly , links are
 accessible etc. So it must be hereright?
 What could it be?
 thanks,
 Curt

   
Give us the URL then we can all have a look - might be able to
give you an opinion that's worth something then.
   Here it is:
  
   http://www.angelfire.com/or2/awakingdream/realNeville
 
  It has no extension (.html, .htm, .shtml, .php etc.). It's not a
  directory, so it just gets displayed as text.
 
  HTH,
  Todd
 
 
  ___
  ___
 I don't get it
 If it wasn't saved as *.html even IE wouldn't display it as HTML,
 right?

 The html at the top of the page is what a browser uses to identify
 it as an html page.
 Would you clarify what you're saying?
 Thanks,
 Curt

I don't know the technical reasons, but yes, the extension has something
to do with what happens with the file. This is why you have to add
certain extensions to relate them to their mime-types in Apache config.
That's why when you click a link to any type of file, the server needs
to know what type it is to send that to the browser. (So the browser
knows what to do with it.)

AFAIK, if a file doesn't have any extension, it just displays the file
as text, just as if it had a .txt extension. If it is an unknown file
type (to the server), the user is generally prompted to save the file.

However, it is interesting that you say it works for other folks.
Internet Explorer, I presume? If you look at the Page Info in Mozilla or
Firebird it says it's text/plain. So while this may be a feature of
IE, I would say the problem is with the page and not the browsers you've
tried. They are doing just what they are supposed to by rendering it as
text.

Somebody with a better understanding of mime-types and document headers
can probably tell you the *real* reason :) If the page has a contact,
I'd email him or her about it.

(As a workaround, just save it with a .html extension and open it
locally since the links seem to be absolute paths.)

Todd

--
If those in charge of our society--politicians, corporate executives,
and owners of press and television--can dominate our ideas, they will
be secure in their power. They will not need soldiers patrolling the
streets. We will control ourselves. -Howard Zinn



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-18 Thread Todd Slater
Frankie,

This is getting interesting because the link you provided wrapped in my
mail so I didn't get the .txt extension; however, dillo opened it up
as if it were HTML. Only after adding the .txt did dillo display the
source. Same with firebird.

I found in /etc/httpd/conf/commonhttpd.conf (line 121):

# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, text/plain is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use application/octet-stream instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

Is what I have; I wonder if yours has text/html?

Todd



On Sat, 19 Jul 2003 06:38:44 +0800
Frankie [EMAIL PROTECTED] wrote:

 I can tell you also that if you upload a file with the name
 myfile.txt to your server
 and that file contains HTML tags..
 
 IE will render them, most all others we tried will display the source text..
 
 The only way we could get IE to display the page's source code..
 was to insert this into the top of the page:
 
 plaintext
 
 only IE had this problem.. so it obviously doesn't care about the extension.
 If the page has disernable tags, IE will render them...
 
 An example of a page to demonstraite this:
 http://htmlfixit.com/tutes/html_tables_bring_order_to_chaos_resources/table1
 .txt
 
 Its part of a tute on HTML tables for HTML newbies...
 
 
 regards
 
 Franki
 http://htmlfixit.com


-- 
Name that tune #12: Let's stop off at the Metroplex, that little dancer's
got some style; she's the one I'll be waiting for at the stage door.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] web site displays source instead of HTML

2003-07-17 Thread Todd Slater
On Thu, Jul 17, 2003 at 03:26:43AM -0500, Curt Tresenriter wrote:
 I'm trying to access a web site - an audio archive - but it's only
 displaying the code.
 Konq, Galeon,Opera - doesn't matter.
 
 I would have suspected the web site itself, but for other folks on the
 list it is displaying properly , links are accessible etc. So it must be
 hereright?
 What could it be?
 thanks,
 Curt

It could be the site. I was working on a web-based survey (using
Mod_survey) and it worked in all Moz-based browsers but wouldn't work in
IE. Turns out it was something to do with the header info--the browser
didn't recognize it as a web page and therefore prompted to save the
page.

Todd

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com