PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   AJAX Edit In Place   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: AJAX Edit In Place
Edit and save a paragraph of text in an HTML page
Author: By
Last change: Version 2 enables you to create grid like structure and edit on the fly
Date: 17 years ago
Size: 1,044 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">
    <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>

    <h1>Edit-in-Place with Ajax</h1>
= file_get_contents('text.txt');
$codeToBeEdited2 = file_get_contents('text2.txt');
$idName1 = 'desc';
$idName2 = 'desc2';


$ajaxEditInPlace = new AjaxEditInPlace($codeToBeEdited, 'showText');

$ajaxEditInPlace = new AjaxEditInPlace($codeToBeEdited2, 'showText');