Jump to content

Recommended Posts

Guest jamieanderson
Posted

Having connected to the link and looked at the source code, I couldn't find a txt file at all.

 

Jamie.

Guest jamieanderson
Posted

By definition a html file is a straight ascii text file. True it should have starter and ender tags, <HTML> and </HTML>but most browsers are rather forgiving about that.

 

However this link leads to a file which contains two html commands

 

<a href="http://neo.kafuka.org/gaiasim/">

<img src="http://neo.kafuka.org/gaiasim/button.gif" border="0">

 

And nothing else.

 

Jamie.

Posted

by defalt the webserver should serve the file as text as it's exstention is .txt

 

however the webserver is serving the file as HTML, and I have ferther tested it by placing both text and html comand lines in a .txt file and again it loaded as a .html file. In nother words it is treating .txt files as .html files

 

when loading the above text file you should see

 

button.gif

 

in your brouser, NOT the actule image but the raw html. I was going to write a how to for webpage creation but seeing how I can't do it in .txt I guess I will have to find another means of doing it.

 

worry not I have my ideas.

Posted

If the SysAdmin set .txt as an extension that the webserver is supposed to parse as HTML, you'll get that.

 

Why the SysAdmin has it set that way I'll never guess.

Guest jamieanderson
Posted

Ah, now I see your problem. Well there is a fairly

simple solution. Replace the < and the > with ampersand hash 60 semicolon

and ampersand hash 62 semicolon

Then you can save it as an HTML file and it should work.

See the example on

 

http://www.xs4all.nl/~mts/jamie/a.html

 

Jamie.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...