|
Posted by Andy Dingley on 02/23/07 10:05
On 22 Feb, 18:45, "Platonistos" <cassiu...@gmail.com> wrote:
> If it *is* possible to do AJAX-style things without server-scripting,
> what is the "trick" to it?
It's certainly possible, and there's no trick to it at all.
The core of AJAX (without which it stops being AJAX) is that some
client-side JavaScript code loads some content up by a separate HTTP
transaction and does something with it. No more than that. The dynamic
on-the-fly web service SOAP-queriers are nice, but you can still start
small.
As an example, consider an RSS newsfeed display. The HTML host page
loads and then it once loads the RSS from elsewhere, renders it with
XSLT and places it into a <div>. It simply doesn't care and can't
actually tell if the RSS document it receives came from a static file
or was dynamically generated -- it just requests a URL and receives a
document in response. For many first-use RSS feeds, for caching
reasons, the document is a static file re-generated periodically by a
cron job. For filtered or aggregated RSS, it's probably a dynamic
database query. The AJAX consumer simply can't tell though.
Navigation:
[Reply to this message]
|