Now that XMLHTTPRequest has been renamed Ajax by Joe Public, it’s gaining more and more attention.
SAJAX is another toolkit, along the same lines as JPSpan in that you can call PHP functions directly from your web browser. The latest release also has backends for Perl and Python. Other language backends are a possibility if they’re contributed.
One major drawback of this project in it’s current state is, “Lack of type checking and support for rich return types”. JPSpan allows complex data types such as arrays to be passed back and forth between Javascript and PHP and from what I can see of the examples, SAJAX doesn’t support asynchronous calls either, yet.
/* PHP */
function multiply($x, $y) {
return $x * $y;
}
/* JAVASCRIPT */
function do_multiply() {
// get the folder name
var x, y;
x = document.getElementById("x").value;
y = document.getElementById("y").value;
x_multiply(x, y, do_multiply_cb);
}
You might also like
- The Interactive Web
Ajax or XMLhttpRequest using applications still have a long way- Web links
Cascading Style CheatsheetXMLHttpRequest & Ajax Working ExamplesMisunderstanding REST: A look- Web & CSS dev
CSS Directory - so many links.Style TemplatesColorMatch Redux
If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos and funny videos to explore too!
Just to be a stickler and clarify, Ajax is *not* another name for XMLHTTPRequest but a framework using XMLHTTPRequest among a handful of other technologies.
According to the auther credited with coining the term “Ajax”:
“Q. Is Ajax just another name for XMLHttpRequest?
A. No. XMLHttpRequest is only part of the Ajax equation. XMLHttpRequest is the technical component that makes the asynchronous server communication possible; Ajax is our name for the overall approach described in the article, which relies not only on XMLHttpRequest, but on CSS, DOM, and other technologies.”
From: http://www.adaptivepath.com/publications/essays/archives/000385.php
–Dante
rarrrrrrrrrrrrrrrrr