JavaScript Calling on External txt file

They have: 3 posts

Joined: Nov 1999

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~}

They have: 2,390 posts

Joined: Nov 1998

You should really be using SSI instead as it is more suited for this function.
JP

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~}

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.

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.