Archive for July, 2009

belatedPNG / IMG nodes / Javascript event handling

July 2, 2009

I have noted in the past in known issues that, in order to not have to use a pixel GIF (a practice I find annoying), I have to set IMG nodes to visibility:hidden.  This prevents any attached Javascript event handling from functioning as expected, because you can no longer, say, click on the IMG anymore.

Over email, I’ve answered inquiries about this with nothing better than using a pixel GIF workaround and moving the PNG image visibility to the parent as a background image.  Lame.

I’ve decided that 0.0.9a will simply copy all events bound to any fixed IMG nodes to the resulting visible VML, and will modify them slightly so that they fire in the scope of the IMG node as intended.  I estimate that will get around that catch-22.   One can hope, anyway.