Tag Archives: jQuery

Architecture Choices: Callbacks and Events in JavaScript

Warning: Blog Post written for Beginner and Intermediate JavaScript Developers Like any well intentioned programmer, you’re writing reusable code in JavaScript. Maybe it’s a simple widget, maybe it’s a higher level plug-in for your favorite JavaScript library. But now you want to provide a mechanism for your friendly neighborhood developer to extend your code by [...]
Posted in JavaScript | Also tagged , |

Yet Another Pretty Date JavaScript

I can’t let this Pretty Date thing go. I decided to use a modification of John Resig’s Pretty Date JavaScript implementation written by Dean Landolt and shared in the comments on John’s page. The script was an obvious choice for the next iteration of Alarmd, which is nearing completion as I type. The more I [...]
Posted in JavaScript, Projects | Also tagged |

Namespacing outside of the YAHOO Namespace

YAHOO.namespace(). A lovely little utility function subject that I’ve written about before. If you’ve never heard of YAHOO.namespace or aren’t even familiar with namespacing, I’d read that article first. I’ll be honest, using the YAHOO namespace to store my own code makes my bunghole tighten just a little bit. What if I had written code [...]
Posted in JavaScript | Also tagged , |

Using DOM Query Libraries in YUI

Recently, I posted the top 8 things I thought the YUI Library needed to be a top tier JavaScript library again. One of those things included a CSS Selector DOM Querying class. Use one of these babies for awhile, and you’ll never be able to code without it again. They’re amazingly useful and will shorten [...]
Posted in JavaScript | Also tagged , , , , |

JavaScript Frameworks and JSF

You’re programming a new web application using JSF, maybe with Facelets, maybe without. Which client-side JavaScript framework is going to work with it’s unstandardized method of assigning ID attributes to it’s elements? Here is an example of a JSF file: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <html> <body> <f:view> <h:form id="myForm"> [...]
Posted in Java, JavaScript | Also tagged , , , , , |