This Month's posts

Archive for June 25th, 2005

Javascript Behaviors on HTML

Saturday, June 25th, 2005

Just came across Behaviour : Using CSS selectors to apply Javascript behaviours:

After all the work of WASP and others to promote clean markup, valid pages and graceful degradataion via css – it sucks that we’re going back to tag soup days by throwing javascript tags into our html.

The better way to do javascript is to do it unobtrusively. PPK and Simon Willison have been recommending this approach for ages. And it’s definitely the way to go. The only problem is that it’s a bit of a pain in the ass.

That’s why I came up with Behaviour – my solution to unobtrusive javascript behaviours.

He goes on to describe a Javascript library he’s created to abstract the connections between behavioral stuff in Javascript and the (X)HTML stuff its operating on. His interaface? CSS selectors. Beautiful.

Via O’Reilly Radar

Microsoft RSS

Saturday, June 25th, 2005

Update: Kevin gives the details.

Microsoft has announced that they’ll be including RSS support in IE 7 and not only that, but they’re extending it, too! Yay! Instead of embracing and extending, they’re literally extending it as they embrace it. Genius.

It seems they’re baking it into a lot of things and trying to basically use it for everything. One Microsoftie, Dare, gave this as his account of seeing the RSS demo:

Amar then showed a demo using Outlook 2003 and an RSS feed of the Gnomedex schedule he had created. The RSS feed had an item for each event on the schedule and each item had an iCalendar file as an enclosure. Amar had written¬†a 200 line C# program that subscribed to this feed then inserted the events into his Outlook calendar so he could overlay his personal schedule with the Gnomedex schedule. The point of this demo was to show that RSS isn’t just for aggregators subscribing to blogs and news sites.

Dude, why convert a webpage to RSS and the event data to ICS files? We can do it all at once and all in the HTML.