719 posts tagged “javascript”
2007
Disabling keyboard controls in the Yahoo! Maps Ajax API. map.disableKeyControls() is the incantation—without it, the map will pan when you use the keyboard to scroll up and down the containing page.
Microsoft saw the danger of Javascript and tried to keep it broken for as long as they could. But eventually the open source world won, by producing Javascript libraries that grew over the brokenness of Explorer the way a tree grows over barbed wire.
Fortify JavaScript Hijacking FUD. Bob Ippolito points out the flaws in the recent widely disseminated JavaScript Hijacking paper. While the paper does miss some important details, it’s good that more people are now aware of the security implications involved in serving JSON up wrapped in an array.
Ext JS. Jack Slocum is building a business around his excellent Ext JavaScript library (which can now run on top of YUI, jQuery or Prototype). The library itself is LGPL, but you can pay for a commercial license and support.
Metaprogramming JavaScript Presentation. Adam McCrea demonstrates some incredibly elegant DSL -style JavaScript based on chaining method calls together.
base2. Dean Edwards’ new JavaScript library which adds useful cross-browser features based on upcoming DOM standards (the Selectors API, DOMContentLoaded, addEventListener and more).
Rules For JavaScript Library Authors. The guiding principles behind Dean Edwards’ base2 library, entirely applicable to every JavaScript developer.
JavaScript/CSS Font Detector (via) Really clever trick: detects the fonts that you have installed by writing out some text and measuring its dimensions.
DED|Chain JavaScript Library (via) Dustin’s new JavaScript library, which puts a JQuery style chained API on top of YUI.
A Zoned Defense. Using JavaScript’s date.getTimezoneOffset() to detect the user’s timezone and stash it in a cookie.
wii.js (via) A JavaScript library that lets you detect the Wii browser, and provides easy hooks for reacting to keys pressed on the Wiimote.
Ajax3d Demo. Really impressive Virus clone, using the canvas element.
Dashcode review. “Dashcode is quite possibly the best non-Firebug Javascript environment I’ve ever used.” High praise indeed.
swf Image Replacement. Really neat idea: unobtrusively replace an inline image with a SWF, then apply effects like rotation, rounded corners and drop-shadowns. Shame it suffers from Flash-Of-Unstyled-Content.
Serving YUI Files from Yahoo! Servers (via) If everyone who uses YUI links to the same set of files, your users will already have the YUI code cached in their browser when they arrive on your site.
John Resig: Thoughts on OpenAjax. I hadn’t looked in to OpenAjax—from John’s analysis it seems like they need to make it easier for open-source projects to participate and do a bunch of work to modernise their core library.
parseDateString function in dateparse.js return wrong date for ’2006-12-31’. I didn’t realise that you have to initialise a JavaScript Date object in a certain order; if you don’t weird bugs can result.
Neighbourhood Fix-It. Report problems to your council across the UK. The most detailed Ordinance Survey maps anywhere online, and a superb example of progressive enhancement in action—the maps work without JavaScript, and the site even works without images!
The Zimki Plan. Zimki is a hosted JavaScript application server by Fotango. The idea is to open source it, then build a component so developers can seamlessly switch to hosting on Fotango’s server farm if they need to handle a spike in traffic.
Sumo! A Generic Microformats Parser For JavaScript. Dan Webb’s BarCamp talk on Metaprogramming JavaScript will be a must-see.
Live DOM Viewer (via) Neat tool from Hixie that provides an insight in to what browsers are actually thinking.
The window.onload problem (still). Peter Michaux offers the most comprehensive overview of this important topic to date.
Fork JavaScript. A great name for Yet Another JavaScript Library. This one tries to combine the best bits from YUI and Prototype.
MySpace: Too Much of a Good Thing? CSS customization really was just the result of forgetting to strip HTML. They “eventually” decided to filter out JavaScript(!)
jQuery 1.1. jQuery is one year old. The latest release features API improvements and some significant optimisations.
The JavaScript alert(), confirm() and prompt() functions in Firefox, Opera and MSIE (but not Safari) will truncate the message after any null character. So an unsuspecting programmer who inserts user-provided text into one of these dialog boxes opens up an opportunity for the user to rewrite the bottom of the dialog box.
AJAX Debugging with Firebug. Great Firebug tutorial from creator Joe Hewitt himself. I didn’t know you could trigger profiling from your own code using console.profile() / console.profileEnd().
Offline Gmail and Blogger Using the Dojo Offline Toolkit. These are just mockups at the moment, but they’re a useful illustration of how offline browsing modes for Web applications could work.
macrumorslive.com. The MacRumors ajax keynote coverage gets better every time—now they have live photos in addition to the text updates. Simple but effective.
IE JScript Performance Recommendations Part 3. Once again, Microsoft’s official advice is to avoid closures entirely rather than learn how to use them safely. Sigh.