View Full Version : Inserting documents...


ToothlessRebel
01-10-2004, 12:35 AM
If have a text file that I'd like to display on my website. I'd like to be able to upload it, and display it, or other wise post it so viewers can read it. I don't want to go through and edit it with all the HTML tags to make it display correctly. Can I do this? Please help, if a thread exists that explains this already just point me to it, I ain't scared of a little reading.

COBOLdinosaur
01-10-2004, 12:41 AM
just make it the source of an iframe:

<iframe src=:"yourfile.txt" height="200" width="600"></textarea>

It will then display as plain text

ToothlessRebel
01-10-2004, 12:59 AM
Thanks

pb&j
01-10-2004, 03:59 AM
just make it the source of an iframe:

<iframe src=:"yourfile.txt" height="200" width="600"></textarea>

It will then display as plain text

should that perhaps be...
<iframe src="yourfile.txt" height="200" width="600"></iframe>

bellportal
01-10-2004, 05:05 PM
You could also try SSI (Server Side Includes) - except you have to make sure your host supports it before you go ahead with it.

Regards,

COBOLdinosaur
01-10-2004, 10:19 PM
Ooooooooooooooooops ... brain cramp

:blush:

bellportal
01-11-2004, 05:24 PM
Brain cramp - what for? The only thing I would say is that if you host supports SSI, use it! If you go for the frames option, whilst being good, if a visitor with a browser not supporting frames tries to view your page they can't, whereas using SSI will allow all users to be able to view it - irrespective of their browser!

Now talk about brain cramp. ;)