Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Comments

  1. #1
    Regular Coder
    Join Date
    Nov 2004
    Location
    Perth, UK
    Posts
    105
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Comments

    Hello.

    I need a script for my website, and many of the pages within. The website has Flash animations on it, and I am looking for a script that lets the person viewing the movie post a comment. They click the button, and the same page reloads, showing their script. Only problem is, I don't know how, so therefore, I have no script

    Can someone please enlighten me? I will be grateful.
    Geodesic_D
    "I'd much rather be called GeodesicDragon."

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Edinburgh, UK
    Posts
    402
    Thanks
    2
    Thanked 1 Time in 1 Post
    Well firstly this would be best done in a server-side language, especially if you want to keep the comment for other viewers to see. If I'm not mistaken (and I may be, someone else may want to confirm this) JS can't use a flat-file system as JS can't write to text files or any file for that matter; therefore JS can't 'save' the data.

    It's simple enough to use JS to take the user's comment entered in a form and then pass it to the same page as variables, then use the document.write to output it to the screen, however as I said above it won't save the value.

    A server-side language would be able to take the data from the form, process it, save it in either a database or text file, and then refresh the page and display the saved data.
    Rich

    "An expert is a person who has made all the mistakes that can be made in a very narrow field."


  •  

    Posting Permissions

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