PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of V  >  MultiAjax  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: MultiAjax
Using AJAX in batch mode
Author: By
Last change: Version 1.01
Date: 11 years ago
Size: 1,045 bytes


Class file image Download
include_once '../MultiAjax.class.php';

ExampleMultiAjax extends MultiAjax {
    public function
example_echo($data) {

$ma = new ExampleMultiAjax();
if (
$result = $ma->dispatch()) {

    <title>MultiAJAX DEMO</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <script type="text/javascript" src="/MultiAjax.js"></script>
function test_send() {
        url: '/examples/example.php',
        handler: 'example_echo',
        data: document.forms[0].ti.value,
        callback: function(result) {
            document.forms[0].ta.value +=
                              (result.error ? result.error : + '\n'
    <textarea name="ta" rows="20" style="width:700px"></textarea>
    <input name="ti" style="width:650px;">
    <input type="button" onclick="test_send()" value="Test" style="width:45px">

For more information send a message to info at phpclasses dot org.