xajax

xajax is an open source PHP class library implementation of Ajax that gives developers the ability to create web-based Ajax applications using HTML, CSS, JavaScript, and PHP. Applications developed with xajax can asynchronously call server-side PHP functions and update content without reloading the page.

Xajax has not been updated since 2014[1], it is dead project.

Unlike some other Ajax frameworks, xajax is designed to allow the programmer to have no prior knowledge of JavaScript.

System requirements

Server-side xajax runs on any PHP 4.3.x and PHP 5.x Apache or IIS server.

Client-side xajax runs on (but is not limited to) Internet Explorer 6+, Firefox, Opera 8.0+, Safari 3.0.

Limitations of xajax

Currently, xajax has no way to transfer data from client to server other than using XML. There are plans to change xajax to allow programmers to use JSON or any other means of communication.

Workaround is to use serialize function of PHP and unserialize function from php.js namespaced Javascript PHP port.

It is possible to send JSON using:

<?php  $response->script('example ='.json_encode($example)); ?>

As of Xajax 0.6 beta1 JSON support has been added as well as removing legacy functions not needed since development now focusses on PHP 5.3+.[2]

gollark: Okay, how can I "peer" with you?
gollark: I WOULD REGISTER osmarks.net OR zxfn.net OR void.bz OR osmarks.website BEFORE osmarks.ga.
gollark: NEVER
gollark: My website is osmarks.tk, yous ee.
gollark: > does "osmarks" have a meaning or is it an opaque labelYes.

See also

  • Ajax framework

References

  1. https://github.com/Xajax/Xajax


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.