Login   Register  
PHP Classes

File: demo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Christian Zinke  >  PHP - Handle in Place Editor  >  demo.php  >  Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: Example-index
Class: PHP - Handle in Place Editor
Embed in place editors using Scriptaculous
Author: By
Last change: main class name was wrong :D
Date: 5 years ago
Size: 1,580 bytes


Class file image Download

  <script type="text/javascript"

  <script type="text/javascript"

//starting objekt
$inPlace= new handl_scriptac;
//array for the used inPlaceEditors
  // array(Your_HTML_ID, Your_PHP_handling_File, array(your_scriptsets) )
  // ->next....
'test1''include.php',array('formId'=>'norm''okText' => 'Update')),
'test2''include.php',array('rows'=>'5','formId'=>'norm''okText' => 'Updateme')) 
//Add all 
foreach($in_placers as $ky => $va)
$error=$inPlace->add_inPlaceEditor($va[0], $va[1], $va[2]);
//if error!=true can be output echo error;
  <body style="text-align:center">
  <h2>DEMO of srciptaculius.php</h2>
  <h4>by Christian Zinke 02/2009 - <a href="http://christianzinke.wordpress.com/">http://christianzinke.wordpress.com/</a> 
  DEMO - Place_InEdit<br>: 
  <div id="form" action="#">
  <div id="test1">My Form (ID=test1) edit live</div>
  <div id="test2">My Form (ID=test2)  edit live with 4 rows</div>  
  <span>If you wanne you can here set the set JS Variable to
  - test1.dispose(); AND test1.enterEditMode('click');
  (The HTML ID is the js.object)</span>
  <h4>based on: Scriptaculous: Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)</h4>