PHP Classes

help-I can't get it to work

Recommend this page to a friend!

      AJAX Edit In Place  >  All threads  >  help-I can't get it to work  >  (Un) Subscribe thread alerts  
Subject:help-I can't get it to work
Summary:I can edit the text in the box, but it won't save
Messages:1
Author:tara eng
Date:2010-11-12 14:34:24
 

  1. help-I can't get it to work   Reply   Report abuse  
Picture of tara eng tara eng - 2010-11-12 14:34:24
I uploaded all of the files, but for some reason, I can't get it to work.
I copied the html code from the demo page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Edit In Place with Ajax</title>

<link href="editinplace.css" rel="Stylesheet" type="text/css" />
<script src="prototype.js" type="text/javascript"></script>
<script src="editinplace.js" type="text/javascript"></script>
</head>

<body>
<onLoad= "init()">
<p><div style="text-align:center"><script type="text/javascript"><!--
google_ad_client = "pub-3021285224358421";
/* 728x90, created 3/19/09 */
google_ad_slot = "5371132110";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<div></p>
<h1>Edit In Place with Ajax</h1>

<p class="showText" id="desc" title="Click here to edit this text">testing</p><p><br /></p>
<div id="demo">
<a href="http://www.phpclasses.org/browse/package/2759.html" style="border:0px">Download the source code</a>
</div>
</body>
</html>

It lets me edit the text in the box, and I click the 'save' button. But when I go back to the page, it still has the original text, not the new text.
Help! What am I doing wrong?