PDA

View Full Version : Edit in Place



alim27
01-28-2008, 01:24 PM
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>
<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 (http://editinplace.org/) you can find a link to the Bib i use.

TimFA
01-28-2008, 02:01 PM
Are you asking how to save it?

alim27
01-28-2008, 02:48 PM
Not exactlly. When i edit the element it should be updated, the new context should be shown. Thanks

codeexploiter
01-29-2008, 03:18 AM
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.

alim27
01-30-2008, 11:03 AM
It was great ! Many Thanks