Posts in: JavaScript/ECMAScript
- The HTML5 video progress event
- UPDATE: Thanks to zcorpan’s comments, I have posted a follow-up entry that should clarify the current status of the video element and its properties. I have been playing around with the HTML5 video interface lately, trying to understand what can be done with it, and how each browser supports its features as set forth in [...] [5 Jul 2010]
- JavaScript tip: Use a for-loop to reveal properties and methods
- I’ve been tinkering with the HTML5 video element quite a bit lately. However, it’s not the best-documented thing in the world. There are very useful properties in the video element’s events that aren’t so clearly explained in the spec. Developing a media player means you have to uncover these properties using a little bit of [...] [29 Jun 2010]
- Proposed File API specification
- Web applications should have the ability to manipulate as wide as possible a range of user input, including files that a user may wish to upload to a remote server or manipulate inside a rich web application. This specification defines the basic representations for files, lists of files, errors raised by access to files, and [...] [10 Dec 2009]
- A really loose regex for matching URLs
- Not recommended for validating URLs, but it will find them. The g flag is JavaScript specific and indicates that the matching should be global. /http:\/\/[\-\.\/\w]{1,256}(|\/)/gi [25 Nov 2009]
- Recommended: “Google Closure: How not to write JavaScript”
- SitePoint’s Kevin Yank brings us some serious criticism of Google Closure from Dmitry Baranovskiy, creator of the Raphaël and gRaphaël JavaScript libraries. From the post: Having delivered a talk on how to write your own JavaScript library (detailed notes) at the conference, Dmitry shared his thoughts on the new library over breakfast the next morning. [...] [12 Nov 2009]
- Google releases Closure Tools, library and compiler for JavaScript
- From the Google Code Blog: Closure Compiler, Closure Library, Closure Templates, and Closure Inspector all started as 20% projects and hundreds of Googlers have contributed thousands of patches. Today, each Closure Tool has grown to be a key part of the JavaScript infrastructure behind web apps at Google. That’s why we’re particularly excited (and humbled) [...] [6 Nov 2009]
- Recommended viewing: Brendan Eich’s “ECMA Harmony and the Future of JavaScript”
- A transcript isn’t available yet. [5 Nov 2009]
- “Sitewide Search On A Shoe String” — now with pages!
- Building on the work of Christian Heilmann,* and his SITESEARCH 1.0, I present a modified version of his site search script that supports paginated results. View a working example Download the JavaScript What do you have to do differently to make this work? The good news is not much . The major difference is the [...] [20 Feb 2009]
- JavaScript in Firefox 3.1 will be wicked fast
- John Resig of jQuery fame, has a post about a huge performance boost coming to Firefox 3.1: TraceMonkey. TraceMonkey, Resig explains, uses a computing technique known as trace trees (PDF) which adds just-in-time native code compilation to SpiderMonkey, Firefox’s current rendering engine. What does this mean? As Resig explains: It means that JavaScript is no [...] [24 Aug 2008]
- Sniffing users’ browser history and Firefox extensions to stop it
- Go read Niall Kennedy’s post about using JavaScript to sniff a user’s browser history. It’s an inventive use of your user’s browser history, though I suspect it could potentially be used — in combination with cookies and logins — to detect which of your users are also regular porn surfers. With that little bit of [...] [8 Feb 2008]