JavaScript
Monday, February 18th, 2008
Category: Comet
, Java
, JavaScript
, Library
Caplin Systems, creator of the Liberator Comet platform have announced a free version which can be used for non-commercial applications and for evaluation. Liberator includes a high-performance Comet server, a JavaScript client library, and a Java server integration library. There are many examples such as the subscriptions sample which shows a page with realtime updating Read the rest…
Friday, February 15th, 2008
Category: JavaScript
Stuart Colville was reading the following info on setTimeout() from JavaScript the Definitive Guide: “In practice, setTimeout() tells the browser to invoke the function when it has finished running the event handlers for any currently pending events and has finished updated the current state of the document†He then thought, does setTimeout solve the DOMContentLoaded Read the rest…
Category: JavaScript
, Testing
, Utility
When you start a new JavaScript library, how do you layout the source files, the tests, the distribution files? Do you have support scripts to generate distributions from source files? Run your JavaScript unit tests? Generators to create new unit test HTML files? This is why Dr. Nic created newjs, a Ruby script that sets Read the rest…
Category: JavaScript
Michael Mahemoff is bullish on templating that runs all over the shop, and explained the progression in his Dual-Side Templating piece: c. 1995: Server-Side Templating. This is the standard templating used in Java’s JSP, Perl’s Mason, PHP, ASP, etc. ie some html code with <?= “language†?> code embedded in it. c. 2005: Browser-Side Templating. Read the rest…
Thursday, February 14th, 2008
Category: JavaScript
, Library
, MooTools
Moo.rd is an extension library to MooTools that brings you more effects, and helpers for tables, lists, and lightboxes. You can see examples of the new extensions including: Custom Alert Custom Confirm Smooth Scrolling The new Custom.Alert and Custom.Confirm classes are modal, fixed, and can be draggable, like the standards. But they are “Customâ€, so Read the rest…
Category: CSS
, Framework
, JavaScript
Marcello Bastéa-Forte has developed OnionML, a layout template language that uses server side JavaScript with Rhino and E4X on the back end. The high-level goal of the template engine is to be something with utility not unlike CSS, but for intended layout and composition. The actual functionality is similar to XSLT, but with the design Read the rest…
Wednesday, February 13th, 2008
Category: JavaScript
, Library
, Prototype
Tobie Langel has developed a deprecation script to help you move from Prototype 1.5 to 1.6: When your code calls a method that’s been deprecated, replaced, or modified, the script will log a warning or error to your Firebug console. Clicking its hyperlink will take you to the deprecation script itself, which isn’t all that Read the rest…
Category: JavaScript
, Library
Greg Reimer has followed up and posted on the new event delegation library that he is using on Sun.com. The library provides one object, reg which lets you hook behaviour via: < View plain text > javascript reg.click(‘ul.foo > li > a.bar’, myFunction); What is happening Once that bit of code runs, regardless of whether Read the rest…
Category: JavaScript
, Tip
Paul Irish posted a crazy method for tweaking third party scripts. His problem was that he was using MultiMap (online Mapping API) and wanted to internationalize the information, but it was hard coded in the JavaScript. To get around the problem he does this: < View plain text > javascript // WARNING!! This is such Read the rest…
Category: CSS
, Dojo
, JavaScript
Alex Russell has taken some time to share the path you take when you go the Dojo Way and “build with, not onâ€. He posted an example of how to extend dojo.query() which walks through the steps: Step 1: grok dojo.NodeList dojo.NodeList is the Array subclass which all dojo.query() calls return an instance of. Therefore, Read the rest…
Tuesday, February 12th, 2008
Category: JavaScript
, Library
José Manuel Alarcón AguÃn has written AJAXInterceptor, a JavaScript library that you add which takes over form submissions and makes them happen asynchronously with XHR. You can also control progress indicators and request cancelation via code such as: < View plain text > HTML <div id="progress"> <img src="progressimgs/bigrotation2.gif" alt="Loading…" align="middle" hspace="10" /> Loading… Read the rest…
Category: JavaScript
, Tip
Guyon Morée has posted the old chesnut parseInt gotcha, so I thought I should put it up here as a quick tip: I was working on some stuff in javascript which involved some date/string parsing when one morning it failed. “That’s weird, yesterday it worked fine!” After some debugging with FireBug I found parseInt() was Read the rest…
Monday, February 11th, 2008
Category: JavaScript
, Library
JSJaC is a JavaScript Jabber Client Library that was built “to ease implementation of web based jabber clients. For communication with a jabber server it needs to support either HTTP Polling or HTTP Binding.” To use the library you can check out examples to see how you can do things like send a message: < Read the rest…
Category: Browsers
, HTML
, JavaScript
John Resig has written a Cross-Window Messaging sample using Firefox 3, which implements the current postMessage API in HTML 5. Opera 9 implements a slightly older version, and a new release will fix that of course: This particular API adds a new method to every window (including the current window, popups, iframes, and frames) that Read the rest…
Friday, February 8th, 2008
Category: JavaScript
Jonathan Tang has fallen into the Arc fun and took some time to fully implement it in JavaScript. It differs from Paul’s implementation: Supports Unicode, at least as well as JavaScript supports it. There are very few I/O primitives – the ones that do exist write to the string “Eval.stdout”, which can be tested and Read the rest…