Friday, April 18th, 2008

Conform your JSON to ECMAScript 4 with JCON

Category: JSON, Library

Oliver Steele is doing great work, and he has just released a gem called JCON which stands for JavaScript Conformance. It tests JSON values to make sure that they are valid for the new world of ECMAScript 4 type definitions (e.g. new { x:int, y:string }( 3, “foo” ) ). Usage < View plain text Read the rest…

Posted by Dion Almaer at 5:50 am
1 Comment

3 rating from 9 votes

Wednesday, April 16th, 2008

Three Helpful JavaScript Libraries

Category: JavaScript, Library

Oliver Steele has posted on three small JavaScript libraries that he carries around in his toolbox as he goes from project to project. Fluently — Construction Kit for Chainable Methods Fluently lets you build chainable methods, which Oliver used to build a mock test framework. < View plain text > javascript var o = Fluently.make(function(define) Read the rest…

Posted by Dion Almaer at 12:06 pm

3 rating from 24 votes

Busy.js: Loading indicators with Canvas

Category: Canvas, JavaScript, Library

Christian Effenberger is back with some more canvasy goodness. He has released Busy.js, a library that allows you to add/remove loading indicators to html elements on your webpages (inc. overlay color & transparency). It uses unobtrusive javascript to keep your code clean. Requires no plugin/extension or any other external resource. Usage < View plain text Read the rest…

Posted by Dion Almaer at 9:13 am

4 rating from 48 votes

Monday, April 14th, 2008

using.js: manage JavaScript dependencies

Category: JavaScript, Library, Performance

Jon Davis created Using.js, a simple library to manage dependencies with the goals of: Seperate script dependencies from HTML markup (let the script framework figure out the dependencies it needs, not the designer) Make script referencing as simple and easy as possible (no need to manage the HTML files) Lazy load the scripts and not Read the rest…

Posted by Dion Almaer at 6:10 am

3.5 rating from 22 votes

Wednesday, April 9th, 2008

Canvas2Image: Save out your canvas data to images

Category: Canvas, JavaScript, Library

More from Jacob Seidelin. He has created Canvas2Image, a library that takes <canvas> data and makes an image out of it. This means that you can create canvas images on the fly and then: < View plain text > javascript var strDataURI = oCanvas.toDataURL();   // returns "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt…" See the full API in use here: Read the rest…

Posted by Dion Almaer at 10:00 am

16889 rating from 61 votes

Monday, April 7th, 2008

JavaScript SAX Based Parser

Category: JavaScript, Library

Gregory Reimer fancies SAX, and wished that a SAX parser was given to us by the JavaScript host environment. You can’t blame him for not living DOM, but how about E4X? Or, StAX? Anyway, Gregory decided to build a SAX based parser in JavaScript itself, using simple search and replace: After reading Search and Don’t Read the rest…

Posted by Dion Almaer at 4:00 am

-17647056.1 rating from 17 votes

iPhone WebKit Goodness: 3D CSS Transforms and ontouch events

Category: iPhone, JavaScript, Library, Mobile

Apple is secretive. I normally don’t mind so much, as they always come through on yet another cool Mac product. If I could know one thing though, it wouldn’t be when the next Macbook Pro is coming out, or when we will see the 3G iPhone. Instead, I wish I knew the attentions in the Read the rest…

Posted by Dion Almaer at 12:01 am

4.1 rating from 22 votes

Tuesday, April 1st, 2008

GChart 2.0: Give me some pie

Category: GWT, Java, Library

Version 2.0 of GChart has been released: The main idea behind GChart is simple: You can make very nice charts efficiently out of a reasonably small number of 1-cell Grids (for the aligned labels) and (empty) Images (for everything else), styled and positioned appropriately on an AbsolutePanel. Not surprisingly, bar charts don’t suffer at all Read the rest…

Posted by Dion Almaer at 8:06 am
1 Comment

3.6 rating from 16 votes

Monday, March 31st, 2008

Helpful JavaScript Date Operations

Category: JavaScript, Library

Tavs Dokkedahl has created a set of Date methods which people might find helpful in his JSLab standard libary. Included are Date.getISOWeek, Date.setISOWeek, getFirstDateInWeek, Date.isLeapYear, and Date.format which works like the PHP equivalent. In addition the library also includes other useful functions for Array, Math, Number, Function and other objects.

Posted by Dion Almaer at 3:24 am

4.5 rating from 13 votes

Thursday, March 27th, 2008

HotRuby: Run Ruby on a JavaScript interpreter?

Category: JavaScript, Library, Ruby, Showcase

This is from the “wow, really?” department. HotRuby is an implementation of Ruby in JavaScript! The way it works is that a HotRuby “VM” takes the resulting output from YARV and can grok it via JSON: < View plain text > ruby VM::InstructionSequence.compile(cgi[‘src’], "src", 1, OutputCompileOption).to_a.to_json Thus, you can embed Ruby by doing something like Read the rest…

Posted by Dion Almaer at 8:01 am

3.4 rating from 29 votes

Friday, March 21st, 2008

Google AJAX Translation API

Category: Google, JavaScript, Library

The game above uses the new Google AJAX Translation API that allows you to do two things via a simple JavaScript API. Translation If you want to take a word in one language, and translate it to another, you simply call something like this: < View plain text > javascript google.language.translate(‘Gato’, ‘es’, ‘en’, function(result) { Read the rest…

Posted by Dion Almaer at 1:15 pm

4 rating from 44 votes

Thursday, March 20th, 2008

SMD: Pluggable Web Services

Category: Dojo, JavaScript, JSON, Library

< View plain text > javascript {target:"/jsonrpc", // this defines the URL to connect for the services  transport:"POST", // We will use POST as the transport  envelope:"JSON-RPC-1.2", // We will use JSON-RPC  SMDVersion:"2.0",  services: {    add : { // define a service to add two numbers    parameters: [      {name:"a",type:"number"}, // define Read the rest…

Posted by Dion Almaer at 7:46 am
Comment here

4 rating from 26 votes

Tuesday, March 18th, 2008

pi.comet: simple comet library

Category: Comet, JavaScript, Library

Azer Koçulu thinks that you can create a comet application in 3 minutes with his new library pi.comet. It provides realtime data transfers between client and server.You can use pi.comet with any server side language. The usage is very simple indeed: < View plain text > javascript var request = new pi.comet(); request.environment.setUrl("push.php"); request.event.push = Read the rest…

Posted by Dion Almaer at 7:43 am

4.3 rating from 31 votes

Subclassing and the prototype chain

Category: Dojo, JavaScript, Library

Are you sure you should be subclassing that? is the question that Neil Roberts asks. He goes on to solve a problem: you just want to change ONE property in this class, but you can’t change it on the actual class because that value would now be used across all instances of that class. So Read the rest…

Posted by Dion Almaer at 12:10 am

3.8 rating from 27 votes

Monday, March 17th, 2008

cvi_text_lib: cross API text stroking

Category: Canvas, JavaScript, Library

Christian Effenberger, or Mr. Canvas as we think of him, has come back from a data recovery nightmare with a new library, cvi_text_lib, that supports stroke text capability for Canvas & VML. It uses unobtrusive javascript to keep the code clean and it works in all the major browsers – Mozilla Firefox 1.5+, Opera 9+, Read the rest…

Posted by Dion Almaer at 7:28 am

4.6 rating from 36 votes

Friday, March 14th, 2008

Asciify: ASCII art library

Category: Fun, Library

Asciify is a new library that draws ASCII art for you, so it had “Friday” written all over it: There are trends on the web (as in real world) that last days or weeks and there are things that became a classic form of expression of the geek culture and are still interesting to explore Read the rest…

Posted by Dion Almaer at 9:43 am

4 rating from 42 votes