Login   Register  
PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 9 years ago
Size: 1,044 bytes


Class file image Download
<!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">
    <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>
$codeToBeEdited2 file_get_contents('text2.txt');    
$idName1 'desc'
$idName2 'desc2';


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

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