Tutorials Page 179
Implementing jQuery’s “One” Functionality in MooTools
I like the idea behind jQuery's "one" event method. You allow an event function to be triggered once per Element; after its initial run, the function is removed, never to be heard from again (a.k.a until the next page load). I think there...
iPhone Checkboxes Using MooTools
One of the sweet user interface enhancements provided by Apple's iPhone is their checkbox-slider functionality. Thomas Reynolds recently released a jQuery plugin that allows you to make your checkboxes look like iPhone sliders. Here's how to implement that functionality using the beloved...
Get the Intro: PHP Paragraph Regular Expression
Recently I was playing around with WordPress' wp_posts table. I wanted to grab the basic information about my posts (ID, title, content, slug) and build a quick summary list of them. One problem I ran into was creating a content "intro." Luckily a...
Poll: Should Browsers Implement Lazy Loading?
Lazy loading is the process of delaying the load of a resource until it's needed. Image a webpage that's 2,000 pixels high (lots of scrolling). Why should the images toward the bottom of the page load if the user clicks the first link way up at...
Dress Up Your Select Elements with FauxSelect
I received an email from Ben Delaney a few weeks back about an interesting MooTools script he had written. His script was called FauxSelect and took a list of elements (UL / LI) and transformed it into a beautiful Mac-like SELECT element.
What If: Twitter Started Charging $5/Month
As you probably know, I'm a fairly frequent Twitterer (@davidwalshblog). I tweet about programming, life, sports, and even reply to my friend's dog's tweets. I promote MooTools via @mootools, promote Script & Style via @scriptandstyle, and follow
Detect an AJAX Request in PHP
I like using the same PHP script for both AJAX and non-AJAX content requests. Using one script just makes everything easier because it's only one file to update/edit and it's one more cache-able request. One way to try detect an AJAX request (as opposed...
What If: TinyURL Sold to a Porn Company
Disclaimer: TinyURL has never been rumored to be sold, especially to a smut website. I use TinyURL in the title because it's the most well-known URL-shortener on the internet. It's used by Twitter and, to my knowledge, it was the first service of its...
Degradable SELECT onChange
Whenever I go to Google Analytics I notice a slight flicker in the dropdown list area. I see a button appear for the shortest amount of time and the poof! Gone. What that tells me is that Google is making their site function...
Support MooTools on Twitter via Twibbon!
Just a secret between you and I: MooTools is the best JavaScript framework out there. I mean it. It's compact, reliable, flexible, and as free as the air (not Adobe) you and I breathe (except persons on oxygen tanks -- I assume...