Using hitCallback in Google Analytics with ga.js
I recently ran into an interesting issue in Google Analytics – I wanted to track an event and then immediately direct the browser to a different page. Easy right? The problem was when the event tracking was implemented like this… _gaq.push(['_trackEvent', 'Category', 'event', 'value']); document.location = ‘someOtherPage.html’; …the event call to Google Analytics was cancelled [...]
Extending jQuery’s slideToggle() Fading Absolutely Positioned Children
jQuery’s native slideToggle function generates an undesirable effect when applied to a DOM element containing absolutely positioned children landing on or outside the parent’s boundaries. At the outset of the animation jQuery hides the overflow of the animating element. This will appear to”snap off” or “clip” any portion of any child element hanging outside of [...]
Heroize jQuery Plugin
The Heroize plugin generates a customizable animated hero/feature pane for use on your site. Features include play/pause toggle jump to pane buttons keeps code clear and optimized for search engines timer Default panel display if Javascript is not enabled slide transitions. Source https://github.com/joelasonian/heroize-jquery-plugin Sample Display this panel when javascript isn’t loaded Feature 1 Feature 2 [...]
jQuery/CSS3 Clock Getting Some Love
It has been fun and exciting to watch the viral effect of the jQuery/CSS3 Colour Clock Rebuild ripple across the internet. On April 18th Webdesigner Depot featured the clock in What’s New for Web Designers – Apr 2011. On April 28th the Brazilian website www.brunoavila.com.br posted Um relógio hexadecimal?! . And the loves keeps coming: [...]
Validating input: Does a Double Byte Character exist?
I have traveled up and down the JavaScript form validation road quite a few times. If it was a toll road – I’d be broke. A few weeks ago I came across a new bump in that road. I was asked if I could validate a form to ensure only Latin characters were being used. [...]