Login   Register  
PHP Classes

File: example/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar D. Rodas  >  Auto Ajax  >  example/index.php  >  Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example
Class: Auto Ajax
Update page parts with AJAX when links are clicked
Author: By
Last change: * Changing example, showing how to force a link to avoid ajax query.
Date: 7 years ago
Size: 954 bytes


Class file image Download
include_once("definition.php"); /* auto-ajax definition */
global $ajax/* Important, always do this, because this page will be include */
    <title>Testing Auto-Ajax</title>
    <?php $ajax->printjs() ?>
<table width="100%">
    <td colspan="2" align="center"><h1>Testing AutoAjax</h1></td>
<td width="12%" valign="top">
    <a href="welcome.php">Home</a><br />
    <a href="about.php">About</a><br />
    <a href="copyleft.php">Copyleft</a><br />
    <a href="time.php">Refresh time</a>
    <a href="normal-request.php" rel="no-ajax">Normal request</a>
<td width="88%">
//Printing Ajax section
    <td colspan="2" align="center">
//Printing Ajax section