Posts in: JavaScript/ECMAScript
- 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. “Just [...] [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 form and added [...] [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 longer confined [...] [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 fearmongering out [...] [8 Feb 2008]
- JavaScript Holy War: What’s your favorite framework or toolkit?
- Digital Web has two articles that are related to this post. Check out Excerpt: Accelerated DOM Scripting with Ajax, APIs and Libraries and jQuery Crash Course As the number of web-based applications grow, so do the number JavaScript frameworks and toolkits with the goal of making cross-browser development an easier process. But which to choose? Well, [...] [4 Oct 2007]
- Recommended viewing: “Best Practices in Javascript Library Design”
- John Resig of jQuery fame gives some tips on writing a JavaScript Library. Source. Also of interest: JavaScript Tips for Novices, Acolytes, and Gurus [28 Aug 2007]