Treehouse

Tutorials Page 97

  • Animated AJAX Record Deletion Using MooTools

    I'm a huge fan of WordPress' method of individual article deletion. You click the delete link, the menu item animates red, and the item disappears. Here's how to achieve that functionality with MooTools JavaScript. The PHP - Content & Header The following snippet goes at the...

  • MooTools ContextMenu Plugin

    ContextMenu is a highly customizable, compact context menu script written with CSS, XHTML, and the MooTools JavaScript framework. ContextMenu allows you to offer stylish, functional context menus on your website. The XHTML Menu Use a list of menu items with one link per item. The...

  • Implementing jQuery-Like Event Syntax in MooTools

    If you take a peek inside the MooTools core Element/Events source code, you'll see the following collection of events: As you probably know, in order to add an event, you need to code something similar to: In jQuery you code something like: I don't prefer that syntax but if...

  • Linkify Your Twitter Feed

    So, you want to display your Twitter status on your blog? No problem, use the API. But, what if you want to display links in your status like twitter.com itself does? No problem, use regular expressions. Here is a function that will turn all HTTP URLs, Twitter @usernames,...

  • google.load():  Utilize Google’s AJAX Libraries API

    The problem: loads of websites around the internet using the exact same JavaScript file. The file is a whopping 100KB in size. Since this same file resides on each website's server, the file is downloaded and cached for each individual website. Lots...

  • ydkjs-4.png
  • pastebin Available: paste.davidwalsh.name

    Pasting code into the comments section of any blog is hell. The WMD editor does OK but it still strips out code indenting, comments, and so on. That will happen on my blog no longer! I've added a pastebin at the following address:

  • January Mailbag Q & A

    I've been receiving a ton of emails lately with regard to MooTools, jQuery, CSS, PHP, Script & Style, and my opinions on current web topics. While I enjoy responding to these emails, I think it would serve better to have the questions and answers available...

  • 5 Great MooTools Plugin Resources

    One of the strengths of the MooTools JavaScript library is that the code is so flexible. This flexibility allows almost anyone to download the core and create plugins to their heart's content. Why reinvent the wheel if you don't have to though? Check...

  • Media Temple Hosting
  • MooTools: Set Style Per Media

    I'd bet one of the most used MooTools methods is the setStyle() method, which allows you to set CSS style declarations for an element. One of the limitations of MooTools' setStyle() method is that it sets the specific style for all medias. What if...

  • Using jQuery and MooTools Together

    There's yet another reason to master more than one JavaScript library: you can use some of them together! Since MooTools is prototype-based and jQuery is not, jQuery and MooTools may be used together on the same page. The XHTML and JavaScript jQuery is namespaced so the...