Click to See Complete Forum and Search --> : Reading from a txt file


achat
04-17-2003, 03:13 AM
I have an intranet site which has a news ticker. ie a scrolling bar which displays the text i have written in the javascript. Each time there is a change in content i have to open this code and change it. I would like to give some of my users a way to input this info. Can i read from a txt file and displayit. how do i do it. is there any other way?

AdamGundry
04-17-2003, 03:36 AM
You can't do file access with client-side Javascript. You'll need to use server-side Javascript, PHP, ASP, or another server-side language to read the file. What languages does your server support?

Adam

achat
04-17-2003, 04:45 AM
whats server side javascript. I have codes running in ASP also.

AdamGundry
04-17-2003, 04:56 AM
Server-side Javascript is a form of JS that is compiled and then executed on a server, similar to Java. ASP would be suitable for what you need to do, but unfortunately I'm not familiar with it - you could try posting a question in the ASP forum.

Adam

achat
04-17-2003, 05:06 AM
Thanks a lot

viravan
04-17-2003, 08:08 AM
Originally posted by achat
I have codes running in ASP also.

Then check out the link shown below:

http://forums.webdeveloper.com/showthread.php?s=&threadid=7735&highlight=viravan


:)

V.V.