_Haplo wrote: nice work eric
we are currently implementing ajax (or at least trying out different ajax approaches) for our mxBB portal adminCP. So i have evaluated JPSpan, Sack and RICO.
http://www.ajaxpatterns.org/AJAXFrameworks
May I ask what are your approach for this ajax addon (sure i could study your code, but i would rather fancy a discussion)
LarryH has outlined "all" different ajax techniques available in 3 articles, and finally this lead to his JPSpan Project
A more technical reference is given here
- Crouching Javascript, Hidden PHP 1 (background)
- Crouching Javascript, Hidden PHP 2(trials)
- Crouching Javascript, Hidden PHP 3(conclusions)
http://www.onlamp.com/pub/a/onlamp/2005 ... quest.html
Are you writing these snippets from scratch, or are you building on existing frameworks?
This is all very interesting, and this Ajax adventure is slowly beginning to spread around the web as a "plaugue". Therefore i think we should quickly develope some general phpBB Ajax addons, defining standard phpBB interacting javascript libraries for accessing the database and porting output via our $template class to the client - to avoid tons of branched and too specialized solutions. Such a library would surely make phpBB stand out in the community world

Some initial ideas:
JPSpan is a new and powerful ajax lib for reusing native php classes within javascripts, and thus having all phpBB methods accesible by the client on the fly.
The objective is to make connecting a Javascript client with a PHP server as painless and error-free as possible. To this end JPSpan allows you to define a class in PHP and call it’s methods directly (and remotely) from Javascript. That means if you have a PHP class like;
You can use this class “natively” from JavaScript on the client-side, calling it like this:Code: Select all
<?php //... class Math { function multiply($x, $y) { return $x * $y; y*x; } } //... ?>
The intent is to make building “sticky” DHTML or web-based XUL applications, where the user interface remains static (not reloaded) in the users web browser, while data can be fetched dynamically from a remote web server, in response to user events.Code: Select all
var m = new math(); alert( m.multiply(2,2) );
What do you think?
I will keep this updated with our related mxBB work, since we code for the same php backend
