Click to See Complete Forum and Search --> : Javascript help
I would like to know how to insert a contents of a text file into a html file, as html. I want to be able to just edit the text file, so that i can add pictures, as html codes. Then i want the html file, which reads the contents and displays it in a layer. Is this possible?
if it is can you please give me the codes, or point me to the right direction. :D
THNX
Azuth
09-21-2002, 01:12 PM
I don't think that you can do it with client side javascript,but I could be wrong on that one. You'll probably need some kind of server side processing to do this using any number of the popular languages.
I wrote a VB windows app once that did something sort of similar to this. Since my web host did not do ANY server side processing I was kinda forced to try something a little different. This windows app,executed on my home pc, would download the text data file from the server and a html template file. It would allow me to edit the text file and then, using the template, generate the HTML file that would be seen by the user. After editing everything it would then upload the file back to the server. It worked very well and the layman wouldn't even have noticed that it wasn't server side processed.
blackstripe
09-21-2002, 06:44 PM
You could do that using PHP. However, it would be better (faster, etc) to use a database instead of a text file.
EDIT: Forgot some URLS PHP: http://www.php.net MySQL: http://www.mysql.com