Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

perigrin (3495)

perigrin
  chrisNO@SPAMprather.org
http://chris.prather.org/
AOL IM: marceusx (Add Buddy, Send Message)

After Middle School Chris bounced through various high schools around the state of Florida for a bit. He ended up getting a BA (in English) from the University of Central Florida at about the time others his age were getting their MAs. His (now) wife, their child, and he went to Europe for a bit (there was a programming job in Scotland) and came back unemployed where upon he got offered a job in St. Paul. He moved on from that job after a few years to one where he was paid to do the things he previously did as a hobby. That sounds much more exciting than it really was. Really his life is based on two kids, two cats, and a bunny.

Journal of perigrin (3495)

Thursday July 21, 2005
10:56 AM

JSAN rocks

[ #25832 ]

Will the sadness never end? Back in the glorious days of 1999, Microsoft in their
infinite wisdom invented DHTM  Behaviors. Which are actually a fairly cool idea, basically you can bind
JavaScript functions to HTML elements via a CSS property.

I know about them because at the last job where the front end guys built a fairly complex
application using them. I wrote the backend and never touched them. They were
Microsoft only too. It never made it very far at the W3C.

Luckily someone has used XBL to port Microsoft's proprietary CSS extension to Firefox. W00t. Sadly though, it works *better* in Firefox than in IE 6. Microsoft in their infinite wisdom seem to only support a single Script object per Behavior file, while Firefox happily parsed and loaded all my script objects and did what I wanted.

Today I discovered the work around for IE. Enter JSAN. (Cue the Heralding Trupets). JSAN imports my javascript and loads it without my having to have several script sections. I simply make sure that JSAN is loaded at the page level then JSAN.use() whatever I need inside the Behaviors. This means that I can build nice clean modular DHTML behaviors that can be applied and controlled the same way CSS is applied and controlled.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.