JavaScript Calling on External txt file
Does anyone know how to get javascript to read from a specified txt file?
I have seen this done with random quote scripts where it gets something from the txt file, but i can't find any of these scripts anywhere,
I want it so i can make easy updates to a webpage by changing the text in the txt file
If this can be done with anything, please tell me
Thanks
------------------
{~XyBeR~}
JP Stones posted this at 14:38 — 26th November 1999.
They have: 2,390 posts
Joined: Nov 1998
You should really be using SSI instead as it is more suited for this function.
JP
xyber_mike posted this at 14:52 — 26th November 1999.
They have: 3 posts
Joined: Nov 1999
Ok how hard is SSI to use and would i have to re-do my whole page?
------------------
{~XyBeR~}
Rob Pengelly posted this at 15:54 — 26th November 1999.
They have: 850 posts
Joined: Jul 1999
If your hosts allows SSI, you could use the #include file to make updating easier.
For instance, say you updated a menubar on your page everyo so often. Instead of having to open up everypage that has your menubar, you could just place the following code where your menubar usually goes:
<!--#include file="menubar.html"-->
Than to update your menubar, you only need to edit 1 html instead of all of them.
Hope this helps.
------------------
If you counted 24 hours a day, it would take 31,688 years to reach one trillion.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.