Click to See Complete Forum and Search --> : Read from a textfile and generate html?


M8M8
08-02-2003, 12:00 PM
Hello!

Is it possible to connect an ordinay *.txt file to a script?
The script reads the *.txt file (for example if you want to update news) and generates the text on the site.

I know that I can do this with JSP but I just want a simple solution for a simple page.

Thanks for helping me// M8M8

AdamGundry
08-02-2003, 12:05 PM
You can do it with JSP, or any other server-side language (such as PHP, Perl, ASP...). I don't believe it can be done in Javascript, and anyway it shouldn't because then your page is inaccessible to those users who have JS disabled.

Adam

Fang
08-02-2003, 12:10 PM
You can do it with Data Binding (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/databind/data_binding.asp) , but it only works for Internet Explorer.

boojum
08-02-2003, 12:30 PM
i assume that data bingding is an activeX control, this correct?

Fang
08-02-2003, 12:41 PM
Yes, ActiveX Data Objects (ADO).
I would use it a lot more for sites, but i'm still getting about 3% of hits by non IE browsers and i try to support them too.