Posts tagged 〝webdevtrick〞
(page 10 of 12)
Event Handling versus Event Delegation
September 24th, 2006 at 10:51 pm
A quick example showing how event delegation, one handler on a parent instead of many on children, keeps JavaScript web applications light and fast.
Seven simple examples for the YUI Panel Widget
September 21st, 2006 at 3:36 pm
Seven simple, practical examples of the Yahoo User Interface Library Panel widget, from training sessions, including its handy contextual positioning.
Shortening strings to a fixed length in JavaScript
August 25th, 2006 at 5:11 pm
A simpler JavaScript function to truncate text to a set length without cutting words, using substr, split and join to avoid slow concatenation in IE.
\”More content\” links, cloneNode(), YUI and Safari/MSIE issues
August 14th, 2006 at 10:23 pm
Cloning links after attaching YUI event handlers misfires in Safari and IE. Test cases show why you should clone elements before adding listeners.
MSIE problems to watch out for when using animation libraries
June 14th, 2006 at 6:41 pm
Internet Explorer garbles text in opacity animations with YUI or jQuery when elements lack a background colour, and jQuery fades need hasLayout.