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.


DD_belatedPNG 0.0.8a released

June 30, 2009

Changelog here:

http://dillerdesign.com/experiment/DD_belatedPNG/#release0.0.8a

AND IT ONLY TOOK ME HALF A YEAR.  (Not really.)

I’m sure I missed credits for people.  Let me know.  Way too much email for me to keep up with.


Quick note on DD_roundies progress

June 2, 2009

Good news, I have had some time (and willingness … debugging IE is a pain) to actually sit down and write code.

DD_roundies 0.0.3 will feature two new methods:

  • DD_roundies.removeVML( HtmlDomElement );
  • DD_roundies.rerender( HtmlDomElement );

The former would be used if you wanted to un-roundify an explicit DOM node that you provide as the single argument to the method.

The latter would be used (same argument as the former) if the onpropertychange events didn’t catch all the changes that you intended to see, and you want to start the whole process of evaluating appearance and location over again.  It is also useful for roundifying elements after cloning an element, which hasn’t been working correctly up to this point.


Thoughts on upcoming releases of DD_roundies and DD_belatedPNG

May 20, 2009

I have an opportunity to do some hacking this weekend and the next, which should (frickin’ finally) yield some new public versions of each lib.  Each should have more than one fix present, particularly in light of the really solid public bug patches I’ve received over email (thank you!).

Today, I found out the hard way that DD_roundies (and by inference, I suspect DD_belatedPNG as well) really hates HTTPS traffic and will cause ‘operation aborted’ errors in some cases (even though I’m NOT doing an appendChild to an unfinished element).  I conjured a solution, nonsensical as it may be… I suppose that is fitting, given that the PNG lib in particular is nonsense to begin with.

Anyway, I’m looking for some feedback, on one idea in particular: both libs require the silent addition of invisible image elements to a given page to determine the sizes of all images that get applied to VML elements.  I, and pretty much anyone who has used DD_belatedPNG to a great degree, have noticed significant initial page load lagging when using that lib.  I suspect it is in part because of the addition of the above mentioned “size-finding” images.

How would you feel about the lib requiring you to add an object literal that would inform the lib of how big the image sizes are… sort of like a configuration object?

This would enable me to skip the whole size-finding bit.  However, it sounds like a pain in the butt.  A compromise: if no config object is detected, the lib runs the size-finding bit once, and spits out a config object in form of some javascript code that can be copied out of a textarea.

Even if it doesn’t save much CPU time, it would at least prevent the need to download a given image twice just to display it once.


(curse words)

March 25, 2009

I’ve been a busy boy lately.  Still.  Thankfully, I’ve met a deadline as of noon Tuesday March 24th, and I’ll have more time to field comments, and hopefully write some patches.  Sounds crazy, no?  I haven’t even downloaded IE8 public yet.

Need a few days off first though.  Sorta burnt out.


IE8 RC1: slightly better

January 28, 2009

I installed IE8 RC1 in a VM this evening, and looked at a yet-unreleased rough version of DD_roundies 0.0.3a.  Images still fail to load, but the onresize event works!  Rendering the VML also “feels” faster, like there isn’t so much of a browser freeze.


Drew hasn’t disappeared.

January 27, 2009

I know a lot of you are waiting for various bug fixes for both DD_roundies and DD_belatedPNG.  I have had very little free time lately.

I did see that IE8 RC1 is being offered, which has me eager to look at it in the context of DD_roundies (FOR THE LOVE OF GOD DID THEY FIX THE ONRESIZE EVENT?).

Hold tight folks, I’m still dealing with a healthy dose of Too Much Sh** Going On.


DD_roundies 0.0.2a available

January 2, 2009

Multiple border thickness support, multiple corner radii support, very INCOMPLETE support for IE8, full support for PNG background images in IE6:

http://www.dillerdesign.com/experiment/DD_roundies/


DD_belatedPNG 0.0.7a available (DD_roundies 0.0.2a “almost there”)

January 1, 2009

A host of performance improvements and glitch repairs.

http://www.dillerdesign.com/experiment/DD_belatedPNG/#release0.0.7a


DD_roundies 0.0.2a will have IE8 support

December 20, 2008

I have read these pages:

http://groups.google.com/group/google-excanvas/browse_thread/thread/8762ed1ede73509

https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=333905

I’ll be a few extra steps to get everything to apply easily in IE8 (it might mean different function calls for a developer making use of the library), but the raw VML will work correctly in IE8 standards mode.  The tests from the above links work well in my virtual machine, and some rendered source code stolen from IE7 and plopped into raw HTML works in IE8 – so long as it is all encapsulated inside a relative-position DIV.  I’m not sure why that last part is important, but it appears to be a key ingredient!