My favorites | Sign in
Project Logo
                
Search
for
Updated Dec 03, 2007 by saddor
Labels: Featured, Phase-Implementation
PHPAJAX  

Introduction

PHPAJAX is a framework to speed up the developing of ajax with php. Also you don't need to know javascript. This wiki file will show some basic examples, explaining step by step what is happending.

Details

For use PHPAJAX you need to think in class, know what to read, and what and where to show the result. You need to inherit the class phpajax and override some methods:

  • Main (mandatory): Here you need to write the main of you ajax applications. Only output funcion could be used here.
  • Loading (optional): Here you define what to-do while tbe ajax request is processing.
  • input (optional): Here you define what information from client should be send to the server. Here only input functions could be used.

Input Functions

  • aread ( string htmlobject ): This functions tells that the information of htmlobject (which is its id) must be sent in the ajax request. The htmlobject also can be an FILE input field, in this case, the file will be uploaded to PHP. Read How upload files with PHP AJAX for more information.

Output Functions

  • aprint ( string htmlobject, string text[, boolean override=true] ): Prints text into htmlobject, the previous content of htmlobject is delete if override is equal to true.
  • ashow ( string htmlobject ): Turn on the visibility of an htmlobject
  • ahide ( string htmlobject ): Turn off the visibility of an htmlobject

Comment by cool.vimalsmail, Feb 25, 2008

hi this is vimal

Comment by dimar4hire, Apr 02, 2008

MOO

Comment by ofer.misk, May 02, 2009

Hi, The framework does not work with IE7. Why, oh, Why?


Sign in to add a comment
Hosted by Google Code