Posted on Monday 28 February 2005
Communication between Javascript and the server-side is getting more and more popular with the recent dHTML apps by Google getting a lot of press. Just noticed this toolkit for communicating between PHP and Javascript in a seemless fashion. It handles serialization of objects between Javascript and PHP in a transparent fashion, is object-oriented, allows you to call remote methods using two lines of Javascript etc. It’s like Remoting for Javascript.
Here’s the part I love: the classes used by JPSPAN are generic, like those of AMFPHP. Guess what? Classes made for either framework are practically interoptable out of the box. The one thing I don’t like about JPSPAN though is that unlike AMFPHP it doesn’t separate the class and the gateway (there is no gateway.php or /services). Obviously we could teach them a thing or two about good design! From the looks of it, it should be pretty easy to create a gateway that would work AMFPHP-style. Now we could have auth, web service consumption, database serializalization… Are you excited about this yet?


