PHP & AJAX Presentation Online
the.admin.man writes "There's been quite a bit of buzz around using PHP as a backend to AJAX-based web applications (the same development methodology on which some Google applications), lately, particularly after the release of JPSpan, a framework that helps building XML-based interfaces between Javascript and PHP apps. Just yesterday, Joshua Eichorn gave a presentation to the Arizona PHP Group on developing AJAX applications for PHP--he's posted the slides online, and will give his presentation again through a free webcast hosted by php|architect."
And it can save a LOT of bandwidth. However, writing for it is currently a nightmare for the most part.
After reading the article, it sounds like they are using a Javascript processor on the client side instead of using a PHP processor on the server side. Whether you use AJAX is really dependent on whether you believe processing should be done on the server, client or both. This is more alphabet soup. I'll stick with PHP on the server and Javascript on the client for now.
Oh yes, JS is actually a *really* cool language, right up there with the "academic" languages. In fact it's very much like Self, which is a prototype-based language. A single concept implemented cleanly from top to bottom.
Somewhere on there net there's a JS program which makes JS work like Ruby (blocks, iterators, etc).
Too bad JS is trapped in the browser like that, having to deal with the outside world via DOMs and documents and junk like that.
So except for the lack of XML or remote server calls that was just like AJAX?
For the love of all that's holy and good can we please stop calling it Ajax? It's one bloody JavaScript object. Great that it's being used more often, good on Google for getting it out there and popular but it just doesn't do the technology any good to overhype it. If we are going to call it something cute it should be Greasemonkey because monkeys and grease are cool.
.innerHTML = whatever). World changing or not it's more fun than a car full of fat people
In any case I've built a greasy little forum app that uses the shit out of XmlHttpRequest and it doesn't really require any special toolkits. It's just a matter of making calls to the server with JavaScript and using the response to populate your page (generally with
Check it out if you like http://beta.twelvestone.com/forum