Results 1 to 5 of 5

Thread: Edit in Place

  1. #1
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Edit in Place

    Hi all,
    i'm trying to edit texts in place every thing goes well without saving the new texts (have no knowledge in PHP).
    Had anyone an idea what should i change to make this work ?
    HTML Code:
    <html>
    <head>
    <script type="text/javascript" language="javascript" src="prototype.js"></script>
    <script type="text/javascript" language="javascript" src="editinplace.js"></script>
    </head>
    <body>
    <span id="FatherText">you can edit me !! (supposed ;-)  )</span>
    
    <script language="JavaScript">
    <!--
    $("FatherText").editInPlace({auto_adjust: true, select_text: true}); 
    //-->
    </script>
    </body>
    </html>
    here you can find a link to the Bib i use.
    Last edited by alim27; 01-28-2008 at 01:36 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Are you asking how to save it?

  3. #3
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Not exactlly. When i edit the element it should be updated, the new context should be shown. Thanks

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Please have a look at the following page in which you can find the demonstration of editing using JavaScript with a good explanation about everything used.

    http://www.quirksmode.org/dom/cms.html

    I hope you'll find this useful.

  5. #5
    Join Date
    Oct 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It was great ! Many Thanks

Bookmarks

Posting Permissions

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