AJSHP Project :: HOME PAGE
what is AJSHP Project ?
Asyncronous JavaScript Hypertext Preprocessor
is the extended name of this project that's a mix of what AJAX and PHP names mean because this is an alternative way to use
PHP classes directly from JavaScript ... seems to be interesting ?
The original idea was to create something like AMFPHP for javascript
but that incredible project is really advanced,
so I decieded to create something easyer such another great client/server Flash RPC project, known as
PHPObject.
The goal is to manage PHP classes public methods from javascript and to create a fast crossplatform client/server
interaction sending and recieving directly primitive or complex variabiles from both js and php technologies.
The key of this project is my PHP_Serializer javascript object,
that could serialize javascript variables for PHP and unserialize PHP variables for javascript.
This kind of interaction is faster than JSON for PHP,
on server and often on client serializing process too,
but actually not as portable as JSON is (then please visit contribute page).
download last version of AJSHP files
-
AJSHP.js
(includes dedicated NetServices and reusable PHP_Serializer objects)
checksum: f2117d4a74e1c822e6726be7eb2f1ff2
size: 6578 bytes (6.42 Kb)
created or modified on: 2009-10-21 19:57:24 -
Gateway.class.php
checksum: 89c881048348b0e0f3b79166a0a59f0e
size: 5639 bytes (5.51 Kb)
created or modified on: 2009-10-21 19:57:24
project features
- trasparent fast and crossbrowser ajax interaction
- manages one or more server classes and their public methods directly from javascript
-
converts automatically javascript and php sent or recieved variables
[class, array, object, string, number, integer, double, boolean or null vars] - compressed or normal textual interaction without the use of urlencoded or unescaped strings as LoadVars requires (it's faster than a LoadVars interaction)
- automatic realtime percentual progress indicator (for browsers) or credible but fake percentual progression (for IE ...)
- automatic debug, if setted, and client error manager for a fast development
- [V0.5c] support for PHP UTF-8 serialized / unserialized variables
changes log
-
2006 / 05 / 09
uploaded final 0.5 version -
2006 / 05 / 07
Add new PHP_Serializer object. Modified some NetServicies methods for IE5 compatibility. Add support for IE5, 5.5 and KDE 3.5 based browsers. Add method to Gateway.class.php to export method names to use with javascript. Compatibility with old version preserved but with this new method you can use case-seinsitive PHP 4 methods. Some fix for javascript, no more changes for Gateway class. -
2006 / 04 / 20
Rewrote all classes of AJSHP. Now it's faster and smaller !!! This is AJSHP V 0.4, enjoy it. -
2006 / 03 / 08
New PHP_Serializer object inside AJSHP packed file. Version 1.6c now supports developer function constructors too. -
2006 / 02 / 23
Experimental UTF-8 support, new option var inside Gateway.class.php and new parameter accepted while create connection.
var connection = NetServices.createGatewayConnection(true); In this way you will enable experimental UTF-8 support and you need to set utf8 option = true on new Gateway.class.php file.
No other changes, compatibility has been preserved with last version. -
2006 / 02 / 05
Updated AJSHP Object inside packed AJSHP.js file V 0.3b
Changes: fixed bug #1 -
2006 / 02 / 01
New version of AJSHP Object inside packed AJSHP.js file V 0.3
Changes: fixed IE7 beta 2 problems with new XMLHttpRequest object
[fake progression as IE6 and 5 or 5.5 because new XMLHttpRequest IE object is not good as FF or Opera object is] -
2006 / 01 / 27
New version of AJSHP released on 27 January, 2006.
Total client filesize: less than 7Kb
Total objects: 3
Details: one packed file that contains new optimized versions of NetServices and a dedicate rewrote version of LoadVars renamed as AJSHP Object. PHP_Serializer V 1.6b is present too then one file, more than one application :-)
project bugs history
- open bugs [0]
- Bug #3 [2006-04-28] problem with Safari browser
- Bug #2 [2006-04-28] problem plus sign char without UTF-8 experimental support
- Bug #1 [2006-02-03] problem with FireFox 1.0.7 after IE7 beta 2 fixed version: exception created from getResponceHeared XHP method
- solved bugs [3]
- Bug #3 [2006-05-09] rewrote PHP_Serializer and LoadVars partial core, add Safari and KDE 3.5 support
- Bug #2 [2006-05-09] add simple regular expression when AJSHP is not in UTF-8 mode
- Bug #1 [2006-02-05] inserted a try/catch check to resolve unknown Content-Length header, incremented intervall, now it's 10 milliseconds, not 5 (better for old CPUs, not reltive for updated systems)
well ... why this site is so horrible ?
Sorry guys, no time ^_^