Home

Blog

New Tutorial on $$() and CSS Selectors

It's been a while since I posted a new tutorial so I figured I was overdue. This tutorial is on Prototype's lesser used $$() function (yes that is not a typo, it really is a double dollar sign) and CSS selectors. The combination of these two tools can lead to some very powerful results and much cleaner markup than putting id= all over the place. Check out this new tutorail here: http://www.michaelminella.com/javascript/css-selectors-and-prototype.html. L...

Tutorial

CSS Selectors and Prototype

Most JavaScript libraries provide some form of the $() function. This function is a short hand version of document.getElementById(). However, I was only recently introduced to the $$() function in Prototype. $$() takes a list of CSS selectors and returns an array of objects that match. This ends up being a much easier and more maintainable way to access elements in the DOM than giving EVERYTHING an id. Although the scope of CSS selectors in general is way to large for this tutorial, we will walk thru a simple use of the $$() function in prototype and introduce you to CSS selectors.
More

Widgit

Prototype & script.aculo.us Lightbox

Want lightbox functionality but don't want to add yet another javascript library to your project?  Prototype and script.aculo.us are probably two javascript libraries you already have in your project.  Here we will cover a lightweight way to implement lightbox functionality without adding yet another javascript library.
More

About MichaelMinella.com PDF Print
JavaWelcome to MichaelMinella.com, your home for learning about quality software development.  Although this is my corner of cyberspace, this is your forumn.  This site will only get better with feedback from you.  What do you want to hear about?  What challenges are you facing in your development?  We all are aware of areas where the software development cycle can be improved.  Together we can come up with solutions that will take your development to the next level.  Make no excuses and demand quality.
 

Quick Links

View Michael Minella's profile on LinkedIn
java.net Member