Category: Development

thought

Sam Foster and I are once again leading a JavaScript discussion for Refresh Austin — this time focusing on the major libraries and on practical problem‐solving. Show up tonight at 7pm for the Dojo vs. Prototype girly slap‐fight! You won’t be disappointed.

With Ajax Having Been Experienced…

Posted in Articles, Prototype

That’s right — I just used the perfect passive participle. Deal with it. Everyone else is doing it, so I suppose I have to do a postmortem on The Ajax Experience. IE.next and JavaScript The just‐released Internet Explorer 7 features only a few crumbs for JavaScript developers, so I respect Chris Wilson

Read more →
thought

If you’re going to The Ajax Experience, I’ll probably see you there. I’m getting on a plane tomorrow at an intolerable time before sunrise and will wind up in Boston sometime around 1pm. I look forward to several of the panels — and especially Brendan Eich’s keynote — but will also be thrilled to share a beer with those whose code I have used (and whose work I have copied) for over a year now: Justin Palmer, Dan Webb, Aaron Gustafson, John Resig, and other ninja‐like entities.

link
6

I consider myself humbly fortunate to have been added as a member of Prototype‘s new core development team. My first patch: optimizing getElementsByClassName. Browsers with XPath support get an eightfold performance gain; others get a modest gain of 50–100%.

code

Viewport Dimensions in JavaScript

Adapted from the functions posted on QuirksMode.

var Client = {
  viewportWidth: function() {
    return self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth);
  },

  viewportHeight: function() {
    return self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);
  },
  
  viewportSize: function() {
    return { width: this.viewportWidth(), height: this.viewportHeight() };
  }
};