Quantcast
Channel: The Mozmonkey Blog » Code
Browsing latest articles
Browse All 9 View Live

ClassAnim & HoverHijax: Keeping Presentation out of Your JavaScript

Heads up! This was written in 2007 and many things have changed since then. Nowadays, CSS transitions are widely supported by browsers and a better approach. Ever since the dawn of CSS and compliant...

View Article


Semantic Tab Box v2.0

Heads up! This was written in 2007 and many things have changed since then. This is probably not the most modern approach. Last year I came up with the original semantic tab box, now I’m improving it....

View Article


Ruby on Rails: Hash#Except and Converting Arrays to Args

Tonight I was working on rewriting the event creation flow for MixerMixer, the social event community I’ve been building, and couldn’t figure out why the Hash#except method wasn’t working. My goal was...

View Article

Running IE on your Mac, for free via modern.ie

Several years ago I figured out how to convert the Virtual PC images windows used to provide for Windows testing to VirtualBox format, that would run on the Mac. It was a long process but was the only...

View Article

Good UX for Placeholders as Field Labels (i.e. Float Labels)

Checkout my follow-up CSS only solution UPDATE: My floating labels were featured on CSS Tricks! I know that it is well understood that using placeholder labels are bad practice. However, they continue...

View Article


Serializing Embedded Relationships with Ember Data 1.0.0 beta

In the latest Ember Data (currently 1.0.0-beta.4) saving or serializing embedded records doesn’t work the way some of us wish. By default it will serialize the parent record and include a list of IDs...

View Article

Loading JSON with embedded records into Ember Data 1.0.0 beta

This is a follow-up to my last post that showed how to export an ember data object with embedded relationships into one nested JSON structure. This time we’ll take the same JSON and load it back into...

View Article

CSS Only Placeholders Field Labels (i.e. Float Labels)

In a previous post I showed how I made the float labels for Nest’s store, which can make forms with placeholder labels more user friendly. One of the glaring problems with the solution was that it...

View Article


Ember: Getting the index in #each loops

Unfortunately Ember’s version of handlebars does not support the {{@index}} value in a loop. If you do a google search you’ll find many people asking how to get this, without much help. The most...

View Article

Browsing latest articles
Browse All 9 View Live