Recent Posts
She’s a pretty girl, that’s for sure. Everywhere she goes, she gets noticed. It’s that sort of girl-next-door thing that gets everyone’s attention. Some would call her a hippy; she does like wearing her flip-flops and sundresses whenever possible. Growing up in Silicon Valley, she cares about the environment, loves diversity, and needs her double... […]
In my previous post I discussed the tragedy of the getBoundingClientRect() method and its different implementations. Reader Jose Jeria pointed out that Opera 9.5 has implemented the method as well and has used the Firefox method of originating at (0,0). Distraught over the need to use browser detection for a cross-browser solution, I started playing... […]
Figuring out exactly where an element is on the page can be confusing. There’s all kinds of things to take into account, and the offsetTop and offsetLeft element properties require funky calculations to determine actual position as you step back up through the document hierarchy. The YUI DOM utility hides the ugliness from you by... […]
I’m sure by now that everyone has heard that Microsoft has bid for Yahoo! at a price of $31 per share. As you can probably imagine, there’s been a lot of buzz around the office today regarding this, from shock at the movement of the Yahoo! stock to jokes about how this would change our... […]
I’m about halfway through writing the second edition of Professional JavaScript for Web Developers, which was my very first book. I had a lot of people sign up to review pre-release chapters of the book as I’ve been writing it. Unfortunately, due to a number of circumstances, I’ve been left with a very small number... […]
Today felt like a nuclear bomb was dropped on the web development community. It didn’t seem so at first, but as the day went on and person after person chipped into the argument, I can honestly say I don’t remember such an uproar since I’ve been working in the industry. The reason for the uproar?... […]
A little while ago, I was complaining about the proposed JSON extensions to JavaScript 2.0 (Keep JSON out of JavaScript). At that time, Garrett challenged me to come up with a better way of doing it. He was right, it’s pointless to complain about something without suggesting a solution. Since that time, I’ve been formulating... […]
As I’m working on the next edition of Professional JavaScript, I’ve been updating rewriting a large amount of it to include more of the vendor-specific JavaScript extensions. Today I took a look at getElementsByClassName(), which is implemented in Firefox 3 Beta 2 and the latest builds of WebKit. This method is specified in HTML 5... […]
Use JSON, not XML. You hear it all the time these days. JSON is so much better. It must be because everyone is saying it, right? I’m starting to think not. Fellow Yahoo Douglas Crockford, creator/inventor/founder/father of JSON, says that JSON is better than XML. He says it whenever he can (most recently in his... […]
At this point, almost every company that’s any company has a web site. Some of the sites are simple, some are complex, some are good, some are bad. What still amazes me is how little thought goes into the overall design and structure of major company sites. Case in point: American Airlines. Before digging into... […]