Flash External Interface “addCallback” Gotcha in Internet Explorer

Just learned this one the hard way. Apparently in Internet Explorer, a Flash application cannot use the “ExternalInterface” to add a callback named ‘play’. This list of reserved words also includes ’stop’, ‘tags’, ‘item’, ‘length’ and possibly others.

Makes sense, but it took me a while to figure this one out since it does not seem to be documented anywhere. For a while there, I was a very frustrated developer!

Minor Update to IMapper Library

I made a small change to the IMapper library today. It should now play nicely with other JavaScript libraries.

The alteration will ensure that “$” is referencing jQuery, at least within the scope of the library. This symbol is used by a variety of JavaScript libraries, most notably Prototype.

Obviously, the ready() method used to initialize IMapper will be slightly different depending upon your setup.  I would highly recommend reading up using jQuery with other libraries before you actually attempt too.

I haven’t extensively tested the update.  If you are using IMapper (with jQuery) and another JavaScript library that uses the “$” symbol please let me know if there are any name conflicts or bugs.

FB_PIC Update

A long time ago I wrote a GreaseMonkey script dubbed “FB_PIC” for Facebook.  The script has one simple function: when you mouse over profile links, it’ll show the full-sized profile picture for that given user.  Today I noticed Facebook altered their interface so I decided to make some updates to FB_PIC.

Please note that due to how the Facebook UI works, FB_PIC has trouble keeping up with page changes.  I am still working on an efficient work around to coupe with Facebook’s very unique UI.  In the mean time if you notice that FB_PIC isn’t working as exepected just refresh the page.  This will re-bind all of the nessecary events to the apporiate elements.

For more details exactly what FB_PIC is and how to get it, head on over the FB_PIC page and check it out.

You are currently browsing the archives for the JavaScript category.

© MJCBlog.net - All Rights Reserved
Powered by WordPress