AJAX Tutorials
jQuery: Multiple AJAX and JSON Requests, One Callback
I've been working on a new feature for the Mozilla Developer Network which requires loading of a basic script file as well as a JSON stream. Since we use jQuery, that means a
jQuery.getScript
and ajQuery.getJSON
. I know those both work asynchronously and...The Parallax SEO Conundrum
This post touches on the parallax SEO issue and offers solutions to fix it. If you're following the trends in web design at least from time to time, you probably know that parallax scrolling is one of the cool things that are all the rage as...
WordPress AJAX Comments
There are many functionalities on the web that were just begging to be AJAXified. Whether it be voting on a poll or simply commenting on a blog post, there's really no reason to reload an entire page for something so simple. This blog has featured AJAX...
IFRAME Permission Denied Solution
I was recently rolling my own AJAX upload script, posting a form to a hidden IFRAME and using the load event to know when the upload was complete. When the upload completed, I wanted to access the IFRAME content so I could verify that the upload...
curl.js: Incredible AMD Loader
Today there are dozens of AMD JavaScript loaders available, the most popular being RequireJS. There are also lesser known JavaScript loaders like YepNope, $script.js, LABjs, and Dojo's new native loader. My favorite JavaScript loader, however, is John Hann (unscriptable)'s curl. While allowing...
PHP Advent 2011: Cross-Origin Ajax with CORS
I've had the honor of writing for this year's PHP Advent, blessing you all about Cross-Origin Requests with CORS: There's no doubt that Ajax is one of the most exciting, useful, and necessary web technologies available to front-end developers. Unfortunately, it's also one of the most restrictive — especially...
JavaScript Coding with Class
I've spent the last two weeks in London, eating fish'n'chips, drinking cup'o'tea, and being a hooligan at the Arsenal. Oh yeah, there was a MooTools hackathon too. The MooTools hackathon was hugely successful and I'll be providing more detail about what was...
Custom AJAX Content Handling with the Dojo Toolkit
If you were to ask me for the top five words that should describe any JavaScript framework, one of them would be flexible. The Dojo Toolkit is ultra-flexible in just about every way, using customizable classes and
dojo
-namespaced objects to to allow for maximal flexibility. One...Drag and Drop MooTools File Uploads
Honesty hour confession: file uploading within the web browser sucks. It just does. Like the ugly SELECT element, the file input is almost unstylable and looks different on different platforms. Add to those criticism the fact that we're all used to drag and drop operations...
Lazy Load Content and Widgets with MooTools and RequireJS
The idea of lazy loading content is not new; we've been lazy loading images (check out my MooTools LazyLoad plugin) for quite a while now. And why wouldn't you lazy load content? There are SEO advantages, load time advantages, bandwidth savings, and more, so including a bit of...