JavaScript Tutorials

  • By
    Caching AJAX Results in JavaScript

    AJAX is an awesome tool. AJAX requests are usually faster than regular page loads and allow for a wealth of dynamism within a page. Unfortunately many people do not properly cache request information when they can. Let me show you how I cache...

  • By
    Implementing .css() and .attr() in MooTools 1.2.3

    Very rarely does a developer have the ability to work with just one framework. Often a developer needs to float between MooTools and jQuery. As you can imagine, doing so can make a developer loopy due to the syntax difference. One of the...

  • By
    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...

  • By
    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...

  • By
    QuickBoxes for Dojo

    Adding to my mental portfolio is important to me. First came MooTools, then jQuery, and now Dojo. I speak often with Peter Higgins of Dojo fame and decided it was time to step into his world. I chose a simple but useful plugin...

  • By
    Highlighter: A MooTools Search & Highlight Plugin

    Searching within the page is a major browser functionality, but what if we could code a search box in JavaScript that would do the same thing? I set out to do that using MooTools and ended up with a pretty decent solution. The MooTools JavaScript Class The...

  • By
    Font Replacement Using Cufón

    We all know about the big font replacement methods. sIFR's big. Image font replacement has gained some steam. Not too many people know about a great project named Cufón though. Cufón uses a unique blend of a proprietary font generator tool...

  • By
    Break Out of Frames Using JavaScript

    I thought frames went out of style a decade ago but apparently everyone feels the need to duplicate the Digg Bar. I don't trust these framed services so I choose to use a JavaScript snippet that prevents my site from being in someone else's frame. The...

  • By
    JavaScript:  The Good Parts by Douglas Crockford

    Rarely do I ever command you to do something but I've watched this video three times now and I'm completely mesmerized by Douglas Crockford's tech talk, JavaScript: The Good Parts.  During this hour long talk, Douglas Crockford shares his insight about both the good and bad parts...

  • By
    JavaScript’s window.location

    Need current browser location information?  Keep in mind that the JavaScript's window.location object gives you all of that information about the window's current location. Javascript Window Properties for:https://davidwalsh.name:80/article.php?s=david+walsh+blog#myAnchor Javascript Redirect How can this be used? One example is doing a JavaScript redirect: Or you could use it to compare...