DHTML

Binding your setTimeout methods in JavaScript using Prototype

Posted on April 20, 2009. Filed under: DHTML, JavaScript | Tags: , , , , |

Never mind, use this instead :-)
www.prototypejs.org/api/function/delay
Two features which are indispensable in Prototype are it’s bind and bindAsEventListener functions. I’m not going to write about what they can do for you, but do know that they are indispensable to OO JavaScript for callbacks, lambda functions, closures etc… One place where I desperately wanted to use bind()ing, [...]

Read Full Post | Make a Comment ( 1 so far )

IE + overflow: hidden + innerHTML == disaster

Posted on December 30, 2007. Filed under: DHTML | Tags: , , , , , |

So, once again, IE has tested my patience … and lost.
Here’s the scoop:
I have a div styled with a width, height and an overflow set to hidden [so it qualifies for IE's oh-so-crucial "hasLayout" attribute]. In essence this div will be populated with content dynamically with JS using the inner HTML property via an ajax [...]

Read Full Post | Make a Comment ( 8 so far )

Liked it here?
Why not try sites on the blogroll...