Topic: Displaying the contents of a file... Pages that link to <a href="https://ozoneasylum.com/backlink?for=9591" title="Pages that link to Topic: Displaying the contents of a file..." rel="nofollow" >Topic: Displaying the contents of a file...\

 
Author Thread
Sir Henry
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2003

IP logged posted posted 01-24-2003 17:12 Edit Quote

Hi Folks,
Can anyone out there give me a hand? I'm trying to show the contents of a text file on the browser without plugins. It doesn't matter if it's in a textarea or on the background...
I'm new at this web stuff, as you can tell, but I'm trying...

Thanks
-Sir Henry

A Dragon in the disguise of a Bunny, is still a Dragon...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 01-24-2003 17:35 Edit Quote

The server will need to get the contents of the text file (which must be on the server) and include then in the page.

You cannot get the contents of a text file on the user's hard drive through JavaScript or any other client-side language.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

IP logged posted posted 01-24-2003 21:49 Edit Quote

If you just need the content of the file you could provide a link to the file, or import the file via some back end scripting, every language has some sort of import function from SSI to Java.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 01-24-2003 22:01 Edit Quote

Well, this question just begs so many other questions.

Like - why?

Why do you need to display the contents of atext file? In what manner are you attempting to display them? (as in - is this dynamic content that needs to be displayed depending on what the user does? or is it something that will load on the page everytime? is there some special circumstance?)

Where is the text file in question?

Why is it a text file, and not HTML?

What type of webhost do you have, and what server side options are available to you?

And so on...

You might find these two Gurus Network tutorials useful:
http://www.gurusnetwork.com/tutorials/ssi/ssi1_intro.html
http://www.gurusnetwork.com/tutorials/php/phptemplate/phptemplate.html



[This message has been edited by DL-44 (edited 01-24-2003).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu