Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.403.004 Times

xajax 0.5 Beta 3

  Date Added: April 04, 2010  |  Visits: 1.173

xajax 0.5 Beta

Report Broken Link
Printer Friendly Version

Product Homepage
Download (85 downloads)

xajax project is an open source PHP class library for easily creating powerful PHP-driven, web-based AJAX Applications. Using xajax, you can asynchronously call PHP functions and update the content of your webpage without reloading the page. xajax is designed to be easy to implement. To keep the presentation markup relatively clean and avoid having to create a lot of JavaScript functions to update your web content, xajax allows you to control a great deal of your content through XML responses from your PHP functions. The xajax class creates javascript wrappers for specified PHP functions and generates the necessary javascript support functions to permit you to call them asynchronously through XMLHttpRequest from any HTML event, such as onclick. xajaxs real power lies in the way it allows you to communicate with and manipulate your application through commands sent back from the server. There is no need to create a multitude of javascript handlers or callback functions to handle the data returned from asynchronous requests. The javascript generated by xajax includes a message-pump, of sorts, that parses XML responses returned from your PHP functions and executes the commands contained therein. A single XML response can contain any number of commands. The xajax library includes an easy-to-use class to make creating these XML responses extremely easy. The xajax XML Response commands currently available include Assignment, Prepend, Append, Search and Replace, Alert, and custom Javascript commands. For example, lets say that a user clicks on a button in your AJAX application. The onclick event calls the javascript wrapper for a PHP function. That wrapper sends an asynchronous request to the server through XMLHttpRequest that calls the PHP function. The PHP function does a database lookup. You use the xajaxResponse class to generate XML commands to send back to the xajax message pump in your application: $objResponse = new xajaxResponse(); $objResponse.addAssign("myInput1","value",$DataFromDatabase); $objResponse.addAppend("myDiv1","innerHTML",$DataFromDatabase2); $objResponse.addPrepend("myDiv2","innerHTML",$DataFromDatabase3); $objResponse.addReplace("myDiv3","innerHTML","xajax","xajax"); $objResponse.addScript("var x = prompt("Enter Your Name");"); return $objResponse->getXML(); The xajax message pump would parse the XML message and perform the following: 1. The value of the element with id myInput1 would be assigned to the data in $DataFromDatabase. 2. The data in $DataFromDatabase2 would be appended to the innerHTML of the element with id myDiv1. 3. The data in $DataFromDatabase3 would be prepended to the innerHTML of the element with id myDiv2. 4. All occurrences of "xajax" in the innerHTML of the element with id myDiv3 would be replaced with "xajax"; making all of the instances of the word xajax appear bold. 5. a prompt would be displayed asking for the users name and the value returned from the prompt would be placed into a javascript variable named x. All of this is implemented on the server side in the PHP function by forming and returning an xajax XML response. The presentation markup remains remarkably clean because you dont have to create a bunch of callback handlers for your asynchronous requests. At the same time, xajax is designed to be extremely flexible and leave you, the programmer, in control. As of version 0.1 beta, all of the data passed through xajax is UTF-8 encoded to support Iñtërnâtiônàlizætiøn and you can specify which request method (POST/GET) is to be used to call each individual PHP function through xajax. The default method is POST. Whats New in 0.2.4 Stable Release: - New functionality to permit calling Javascript functions from PHP and passing PHP variables, arrays, and object properties to the Javascript. - Its kind of like JSON, but employs a custom XML format, and is native to xajax. - This release also fixes various bugs and adds some other minor feature enhancements. Whats New in 0.5 Beta 1 Development Release: Package-wide changes: - All of the PHP files have been moved to xajax_core, so the PHP and Javascript files are now in separate folders. - All tests and examples have been updated to work with the new 0.5 API. - A new file,, can be included in your PHP scripts if you want to be able to use the 0.2.4 xajax API. However, it is recommended you update your scripts to the 0.5 API as soon as possible as the legacy API will likely be dropped in a future version of xajax. - A new plugin layer has been implemented for the xajax and xajaxResponse classes. The basis for this is the xajaxPluginManager class which provides for registering and accessing plugins for the different xajax components. - xajax is now licensed under the BSD license rather than the LGPL license. This means you can include xajax and modify it when using it with commercial PHP applications without having to worry about tricky legal issues. xajax Plugin Layer: - xajax now uses plugins to process requests and output Javascript include code. You can subclass the default plugins to alter major xajax functionality or write your own plugins from scratch. - You can use plugins with xajaxResponse, allowing you to output custom commands to the Web client. (Note: this wont be very useful until the a new plugin system is implemented in the xajax Javascript engine.) - Plugin layer documentation forthcoming. changes: - The xajax constructor has been simplified to allow only one optional argument (the request URI). - New getGlobalResponse method lets you use the same response in multiple functions. It also makes it easier to set up the response to have the same encoding and entity settings as the xajax parent object. - New getVersion method returns the xajax version. - All of the ___On and ___Off methods have been replaced with a single setFlag (or setFlags) method. For instance, debugOn() would now be setFlag("debug", true). exitAllowedOff() would now be setFlag("exitAllowed", false). - New setTimeout and getTimeout methods for controlling the delay before the client shows an error alert if the xajax Javascript engine failed to load (just set to 0 to suppress any error alert). - Registering functions to use only GET or POST for the HTTP connection is no longer possible. All functions use POST by default, and if for some reason you need to force using GET, you can use the syntax on the client-side. - The registerFunction method now provides an optional second argument for specifying a PHP file to include, thereby eliminating the need for the registerExternalFunction method. - New registerCallableObject method registers an object that xajax will check to see if it contains a method with the same name as the incoming xajax function. If it finds one, it will go ahead and call that method as if it had been manually registered with xajax (and in PHP 5, it will _always_ go ahead with the method call if a __call magic method is present). - The registerPreFunction and registerCatchAllFunction methods have been eliminated and replaced with the new registerEvent method. You can register one or more functions or class/object methods to be notified when certain events in the xajax lifecycle are triggered. The "pre function" is now the "beforeProcessing" event. The "catch all function" is now the "onMissingFunction" event. - The canProcessRequests and processRequests methods are now singular (i.e., canProcessRequest and processRequest). - All of the following methods use an xajaxRequestProcessorPlugin subclass (typically xajaxDefaultRequestProcessorPlugin) to perform all neccessary work: - canProcessRequest - getProcessMode - processRequest - All of the following methods use an xajaxIncludePlugin subclass (typically xajaxDefaultIncludePlugin) to perform all necessary work: - printJavascript - getJavascript - getJavascriptConfig - getJavascriptInclude changes: - All method names for adding commands have had their "add" prefixes removed (though of course addEvent and addHandler remain). In other words, addAssign is now just assign, addScript is now just script, etc. In addition, all of the command methods return $this (the xajaxResponse object) to allow for "fluent interface" usage in PHP 5. - Internally all of the commands are stored as array-based data structures and are only converted to XML upon final output. Several new methods allow for adding command data manually and merging commands from other response objects. Much of this functionality is extremely useful for response plugins. - As part of the new xajax plugin layer, response object plugins that were registered with the plugin manager can be accessed either via the plugin method on PHP 4 and 5 (with two different call types) or as properties via the __get magic method in PHP 5. - New includeScriptOnce and includeCSS commands available. - IMPORTANT: you may no longer return the getXML() method output as your return value in registered xajax functions. Please return the response object directly. xajax_uncompressed.js Javascript changes: - The Javascript engine for xajax has been substantially rewritten and is still undergoing major changes. Note that some of the changes are "reversed" when using the xajax legacy PHP class (specifically, xajax.loadingFunction, and xajax.doneLoadingFunction work the same as before). - now supports only two arguments, the first being the function name to call on the server and the second being a Javascript dictionary-style object you can use to specify parameters, event callbacks, and other options (in a manner reminiscent of Prototype). - xajax.loadingFunction and xajax.doneLoadingFunction have been replaced by xajax.eventFunctions.globalRequestDelay and xajax.eventFunctions.globalRequestComplete (though in most cases it is recommended that you make use of the per-call event callbacks mentioned above). - Instead of expecting options set by the xajax include code such as xajaxRequestUri or xajaxDebug, the Javascript engine now expects an xajaxConfig object to be present in the global namespace with properties such as requestURI and debug. - The xajax Javascript object is now written using brackets syntax ala Prototype and many other modern Javascript libraries..

Requirements: No special requirements
Platforms: Linux
Keyword: Api Class Library Commands Functions Javascript Method New Php Class Php Function Post Xajax Xml
Users rating: 0/10

License: Freeware Size: 68.61 KB
More Reviews or Write Review

Libraries  -  Ionflux Tools Class Library 0.2.3
The Ionflux Tools Class Library is a lightweight multi-platform C++ framework designed for rapid development of applications in a client/server architecture. The Ionflux Tools Class Library is released under the GNU General Public License,...
245.76 KB  
Libraries  -  Class Library for Numbers 1.1.13
Class Library for Numbers in short CLN is a library for computations with all kinds of numbers..
1.62 MB  
Database Tools  -  PHP Class Generator 1.0.1
The PHP Class Generator is a small windows desktop application that allows a PHP programmer to generate Entity classes from a MySQL database table. For instance, if the user has a table in his or her MySQL database called customers. With this app,...
E-Commerce  -  iCommerceGateway PHP Class 1.0
iCommerceGateway is a PHP class for credit card authorizations made through iCommerceGateway's payment processing system.
Email  -  Mimemail PHP Class for Scripts 1.0
Mimemail is a php class that you can use in your scripts to send email messages from browser pages.The messages could be in plain, html text or in other desired format. You can attach files of different types and as many as you want. This script...
10 KB  
Libraries  -  JSAN::Index::Library 0.14
JSAN::Index::Library is a JavaScript Archive Network (JSAN) Software Library. This class provides objects for the various libraries (software components) in the JSAN. METHODS In addition to the general methods provided by Class::DBI, it has...
35.84 KB  
Libraries  -  PHPLiveX 2.3
PHPLiveX is a class that can be used to call PHP functions from Javascript in Web pages using AJAX. The project generates Javascript code that implements functions with the same names and function arguments as a given list of existing PHP...
8.19 KB  
Libraries  -  Rudiments 0.30
Rudiments is a C++ class library providing base classes for things such as daemons, clients, and servers, and wrapper classes for the standard C functions for things like semaphores, regular expressions, and signal handling. In the early days of...
593.92 KB  
Libraries  -  Jakelib2 2.0.1
Jakelib2 is a cross platform C++ class library with a Java-like API. An automatic garbage collector is used to take care of unused objects. External libraries like PCRE or GTK+ are beeing integrated to provide the programmer with a homogeneous,...
962.56 KB  
Forms and Controls  -  qForms JavaScript API b142 1.0
qForms JavaScript API is the most complete JavaScript API for interfacing forms. The qForms API has been designed to make forms easy to work with. It simplifies tasks HTML developers normally find tricky to handle.The qForms JavaScript API (JSAPI)...
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 KB