GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Javascript experts? (https://gfy.com/showthread.php?t=624692)

Sam Granger 06-22-2006 07:16 AM

Javascript experts?
 
How can I display the contents of a txt file in HTML using javascript? Anyone know?

Thanks in advance!! :thumbsup

pstation 06-22-2006 07:17 AM

ajax
1234

pstation 06-22-2006 07:19 AM

if you just need to simply display the file without further manipulating it, using something like SSI would work better.

chupachups 06-22-2006 07:20 AM

html compact

Sam Granger 06-22-2006 07:25 AM

Quote:

Originally Posted by pstation
if you just need to simply display the file without further manipulating it, using something like SSI would work better.

Hmm but wouldn't I need to change all the file extentions from html to shtml?

Any examples on how to do it with ajax?

psili 06-22-2006 07:27 AM

Quote:

Originally Posted by Sam Granger
Hmm but wouldn't I need to change all the file extentions from html to shtml?

Any examples on how to do it with ajax?

Do a google search for

ajax display text file

tons of examples - just copy and paste and you're golden.

edit: apologies on not just explaining it here but it's mainly just a few functions and a "div" layer which you'll write too and am too lazy to explain it in detail.

Sam Granger 06-22-2006 07:30 AM

Thanks guys :thumbsup:

Sam Granger 06-22-2006 07:45 AM

Quote:

Originally Posted by pstation
if you just need to simply display the file without further manipulating it, using something like SSI would work better.

Great!! I did it with SSI without renaming, just by using htaccess :)

AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm
Options Indexes FollowSymLinks Includes
Thanks man! :thumbsup


All times are GMT -7. The time now is 12:31 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123