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
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Div tag- save edited value

    Hello,

    Is it possible to store the edited value in the div tag in the original file, such that next time i open the HTML file the new edited value appears.
    Thanks in advance.

    Have a Good day.

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    945
    Thanks
    0
    Thanked 129 Times in 128 Posts
    Nope! At least not though javascript!

    You can store the value in a cookie for overwriting, but it will only last until the cookie is deleted or expired.

    A serverside language can store the edited value in a database, which it can use to generate the html page.
    You can use javascript for communication, but it is still not the javascript that makes the changes.

    If editing of the original document is possible this way, I don't know.
    Last edited by Lerura; 05-16-2012 at 01:10 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
    •