Should you use the old iFrame tricks or the new XMLHttpRequest? There is not
better or worse when comparing these two techniques, but they are certainly
different. While both of them allow you to communicate with the server in the
background, you should choose the appropriate for your situation depending on
a few questions: Do you want the back-forward buttons to work? Do you plan to
perform more than one simultaneous request? Do you need cross-site calls? Do
you need to monitor the status of your calls?
I'm pretty sure there are more differences, and way around the ones I will
mention for either technique, but out of the box, here are the differences:
XHR iFrame
Multithread: yes no
Back button no ye... (more)
(October 7, 2005) - AJAX isn't a technology, or a language, and there's no
recipe to implement it; it's just a combination of various components to
achieve something you otherwise couldn't: asynchronous http requests.
However, since early 2005, when Google and Flickr popularized the concept,
its use has grown rapidly.
The name AJAX is short for Asynchronous JavaScript and XML. It uses the ... (more)
AJAX can make the HTML user experience almost as pleasant as Flash. The main
advantage of Flash, in spite of its vector animations, is that you never
reload the page. Flash Remoting allows you to interface with the server in
the background and AJAX does exactly the same for HTML pages.
In my previous article, "What's AJAX?" (CFDJ, Vol. 7, issue 9), I covered the
basics of AJAX - everythin... (more)
ajaxCFC: addressing html code in application.cfc
I just got hit with an email informing me that ajaxCFC will break when
application.cfc adds code onRequest(start|end). I modified the framework to
reset the content before the JavaScript response, and abort it at the end of
the asynchronous call. I am not quite happy with the abort though, so if
someone has a better solution to eliminate al... (more)
It's become very popular lately, even though it's not exactly new. It's been
possible to use the concept behind AJAX since browsers introduced the
XMLHttpRequest function in 1999.
AJAX isn't a technology, or a language, and there's no recipe to implement
it; it's just a combination of various components to achieve something you
otherwise couldn't: asynchronous http requests. However, sinc... (more)