Javascript help

Sharky Forums


Results 1 to 3 of 3

Thread: Javascript help

  1. #1
    Expensive Sushi MMA's Avatar
    Join Date
    Sep 2002
    Location
    England, London
    Posts
    8

    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.

    THNX
    My new Much Improved, Long waited, Website: http://www.mooktakim.freeserve.co.uk
    My latest screen shot .
    -------------------------------------------------------------------------------------
    Something's wrong with the world.
    You don't know what, but it's there.
    Like a splinter in your mind...
    ...driving you mad.
    It is this feeling that has brought you to me.
    Do you know what i'm talking about?...........

  2. #2
    Tiger Shark
    Join Date
    Oct 2000
    Posts
    624
    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.

  3. #3
    Goldfish
    Join Date
    Sep 2002
    Posts
    69
    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
    Last edited by blackstripe; 09-21-2002 at 06:45 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •