Content negotiation, AJAX, and APIs

September 24th, 2007

I thought I was being so clever when I put a content-negotiated API into TradeUps.net, my web development playground. To put it simply, a page can return the same information in different formats, depending upon the HTTP Accept: header. For example, this profile page (view only in Firefox for now) responds to a standard browser request with an HTML document, but returns JSON when it sees Accept: application/json as a header. In this case, a script on the page calls the same URL (/user/admin) again to get the map data in javascript-friendly format. That's where the weirdness starts.

Read full entry »

IE 7 on Linux

October 28th, 2006

When I'm making a web page at home on my laptop (a Linux machine), I test it on Firefox and IE 7. (I only test on IE7 now, because it will be distributed to Windows users as a high-priority update.) Unfortunately, IE 7 will not install under Wine, which is annoying because that's how I run Windows programs on my Linux machine. However, there is a way to get the layout engine of IE 7 working under Wine -- and that's all I need.

Read full entry »