Library
Friday, April 18th, 2008
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 PLAIN TEXT RUBY: type Read the rest...
Wednesday, April 16th, 2008
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. PLAIN TEXT JAVASCRIPT: var o = Fluently.make(function(define) { Read the rest...
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 PLAIN TEXT JAVASCRIPT: Read the rest...
Monday, April 14th, 2008
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...
Wednesday, April 9th, 2008
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: PLAIN TEXT JAVASCRIPT: var strDataURI = oCanvas.toDataURL(); // returns "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACt..." See the full API in use here: PLAIN TEXT Read the rest...
21024.2 rating from 49 votes
Monday, April 7th, 2008
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...
-29999997.1 rating from 10 votes
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...
Tuesday, April 1st, 2008
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...
Monday, March 31st, 2008
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.
Thursday, March 27th, 2008
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: PLAIN TEXT RUBY: VM::InstructionSequence.compile(cgi['src'], "src", 1, OutputCompileOption).to_a.to_json Thus, you can embed Ruby by doing something like this: PLAIN TEXT Read the rest...
Friday, March 21st, 2008
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: PLAIN TEXT JAVASCRIPT: google.language.translate('Gato', 'es', 'en', function(result) { alert(result.translation); Read the rest...
Thursday, March 20th, 2008
Category: Dojo
, JavaScript
, JSON
, Library
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 the two Read the rest...
Tuesday, March 18th, 2008
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: PLAIN TEXT JAVASCRIPT: var request = new pi.comet(); request.environment.setUrl("push.php"); request.event.push = function(RESPONSE){ Read the rest...
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...
Monday, March 17th, 2008
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...
Friday, March 14th, 2008
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...