Separating javascript from content - Easy popups!

Már Örlygsson has posted a nice solution for easy popups in your html.  It's as easy as setting a class attribute to a link.  Also, there is talk within the discussion of another piece of code that colors alternating items in a regular html table.  The beauty here is all about decoupling your javascript from your page.  How many of us have thrown in a quick <SCRIPT> block that eventually evolved into dozens (or hundreds) of lines of esoteric code (even considering that much of the javascript I use is copied & pasted from other sources to add a quick feature, or solve a quick UI problem). As meticulous as I am with the design of my web applications, I often throw discipline out the window for a few blocks of javascript.

[read more here]

Print | posted on Tuesday, August 31, 2004 10:39 AM

Feedback

No comments posted yet.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 7 and 7 and type the answer here: