Is There Such A Script?

They have: 472 posts

Joined: Oct 1999

I'm looking for a script that works something like Moreover.com.

Let's say there is a file called updates.txt on my server that contains HTML code of the latests updates.

I would want a Javascript that I can insert in an area of my webpage, and the javascript will load the contents of updates.txt into the area.

------------------
Goodbookmarks.com - Quality Links To Quality Sites

They have: 231 posts

Joined: Feb 2000

The best way to do this is with SSI (server side includes). If your host supports SSI you can import a text file into your document. You can also do this with ASP with include files.

I can't remember the code but someone else will be able to show you.

For information on this topic try posting in the Misc. Scripting Forum.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

They have: 472 posts

Joined: Oct 1999

I'm looking for a Javascript. Isn't this suppose to be a HTML & Javascript forum?

------------------
Goodbookmarks.com - Quality Links To Quality Sites

They have: 67 posts

Joined: Aug 1999

Hi,
You can do that by using an external .js file that you could call by using
<script LANGUAGE="JavaScript" src="updates.js"></script>

then you would only have to edit your updates.js file.

the inside of your updates.js file would look like this:

<!-- Begin
document.write("<font face='Arial,Helvetica' color='000000' size=-1>");
document.write("Updates beginning from week one");
document.write("Updates beginning from week two");
document.write("</font>");
//-->

if you were using links, you would do:

document.write("<a href='http://www.a1javascripts.com/'>A1 JavaScripts</a>");

do you see the pattern with this using document.write etc? you can do the same with images as well, it is quite easy, but the only drawbacks are that calling this from a .js file is slower that calling straight html if it was written on the page and if a user is not using a java enabled browser, then they will see a big blank.

Hope this gives you an idea anyway.

Ian

------------------
Webmaster A1 JavaScripts
A1 JavaScripts
Web Development - Big Resources Inc
BIG Resources.com

[This message has been edited by Ian (edited 27 May 2000).]

Webmaster A1 JavaScripts
A1 JavaScripts
Web Development - Big Resources Inc
BIG Resources.com

They have: 231 posts

Joined: Feb 2000

Yes this is an HTML & JavaScript forum.

Ian has shown you the way to do it with JS files. But if your host supports SSI you can do it with plain text files. This way would be so much easier to implement.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

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.