JavaScript


Thursday, September 20th, 2007

Google launches JavaScript API that allows you to write back

Category: Google, JavaScript, Library

I am pretty excited about this one. We have long been able to use a JavaScript API to do read only work on GData feeds from Google. That is all well and good, but sometimes you want to be able to access feeds that require authentication, or be able to write and update data in Read the rest…

Posted by Dion Almaer at 8:27 am
11 Comments

++++-
4 rating from 45 votes

RichFaces 3.1: JSF and Ajax

Category: Java, JavaScript, Library

Damian Harvey pinged us about the new release of RichFaces: RichFaces is a rich component library for JSF and an advanced framework for easily integrating AJAX capabilities into business application development. The RichFaces components come ready to use out-of-the-box, so developers can immediately save time in taking advantage of component features to create Web applications Read the rest…

Posted by Dion Almaer at 4:34 am
5 Comments

+++--
3.4 rating from 43 votes

Wednesday, September 19th, 2007

Accordion 2.0

Category: JavaScript, Library

Kevin Miller has updated his accordion with a new release. The new version also builds on Script.aculo.us and includes: Open/Close functionality added (Click on an active accordion) Nested Vertical Accordions Accordions will dynamically resize on content added REAL TIME! Usage < View plain text > javascript // Horizontal example var horizontalAccordion = new accordion(‘#top_container’, { Read the rest…

Posted by Dion Almaer at 6:39 am
30 Comments

+++--
3.6 rating from 51 votes

Freeze Pane Functionality

Category: JavaScript

Markku Uttula was tasked with Excel-like freeze pane functionality, which seems like it would be as simple as a few fixed positions. He ended up with a piece of code that allows you to take almost any table, choose a cell to use as a pivot, and be done with it via: < View plain Read the rest…

Posted by Dion Almaer at 5:20 am
19 Comments

+++--
3.5 rating from 42 votes

Tuesday, September 18th, 2007

Facebook released FBJS

Category: JavaScript, Social Networks

Marcel Laverdet of Facebook blogged about the release of FBJS 1.0: If you are already used to Javascript, you will find that most of the syntax and functionality that you have come to know and love (or hate) is available in FBJS. Additionally, we’ve created hooks into our higher-level AJAX and dialog implementations which allow Read the rest…

Posted by Dion Almaer at 12:20 pm
1 Comment

+++--
3.1 rating from 30 votes

JPU: JavaScript CPU Monitor

Category: JavaScript

Andrea Giammarchi has built a little experiment. His JPU is a JavaScript CPU monitor based on single threading JavaScript behaviour. You can go to a site that uses a lot of Ajax and paste in (or bookmark) javascript:(function(s){s.type=’text/javascript’;s.src=’http://www.3site.eu/JPU/IJPU.js’;document.getElementsByTagName(‘head’)[0].appendChild(s)})(document.createElement(‘script’)); Then you can see the bars go high when you do something Ajax-y (e.g. drag and drop). Read the rest…

Posted by Dion Almaer at 12:12 pm
5 Comments

+++--
3.3 rating from 28 votes

Curl.js: Curl your images

Category: Canvas, CSS, JavaScript, Library

Christian Effenberger has a new effect for you to use. With Curl.js you can add a page curl effect (including backside mask) to images on your web pages. It uses unobtrusive javascript to keep your code clean, and it works in all the major browsers – Mozilla Firefox 1.5+, Opera 9+, IE6+ and Safari. On Read the rest…

Posted by Dion Almaer at 11:26 am
11 Comments

++++-
4.2 rating from 63 votes

Monday, September 17th, 2007

Douglas Crockford’s Elements of JavaScript Style

Category: Articles, JavaScript

Douglas Crockford micro-blogged it best: I have been at Yahoo for two years. One of the first things I did when I got there was to do a View Source of the front page. That gave me a lot of visibility into how things were done. I also saw some things to improve. That inspired Read the rest…

Posted by Dion Almaer at 7:54 am
17 Comments

+++--
3.8 rating from 37 votes

Sprinkle In Your JavaScript

Category: JavaScript, Library

Jon Davis had a message for us: I’ll make this brief. < View plain text > HTML <script src="sprinkle.js"></script>   <div src="info.html"></div> http://www.sprinklejs.com This is the latest in the client-side includes explosion that started with the colour purple. Take a peak at the sprinkle.js that makes it happen.

Posted by Dion Almaer at 12:11 am
29 Comments

++---
2.3 rating from 47 votes

Friday, September 14th, 2007

JSONRequest Extension for Firefox

Category: JavaScript, JSON, Library

Collin Jackson has written a JSONRequest extension for Firefox that exposes the JSONRequest communication API to web pages you visit. It does this by adding a new window.JSONRequest object to your world. An example of using this beast is on the main page itself: < View plain text > javascript function request(method, data) {   Read the rest…

Posted by Dion Almaer at 9:49 am
9 Comments

+++--
3.4 rating from 24 votes

The Digg Oracle: Data mining on the client

Category: Gears, JavaScript, Showcase

Brian Shaler noticed that almost a year ago, Digg removed the “search your own Diggs” feature, to the dismay of thousands of Digg users. To explain why the feature had not yet returned, they cited hardware and software solutions as being very complicated and expensive. Brian decided to re-implement the feature himself using the Digg Read the rest…

Posted by Dion Almaer at 8:48 am
2 Comments

+++--
3.2 rating from 19 votes

The Browser.Next List

Category: Browsers, JavaScript

Alex has taken his last post on what he wanted to see from IE, and has gone a little meta, by talking about what he wants to see from all of the browsers, from an Ajax library authors perspective. This is a nice list, and after you read it you realise how you would be Read the rest…

Posted by Dion Almaer at 6:16 am
2 Comments

+++--
3 rating from 35 votes

How to build a cross-browser history management system

Category: Browsers, JavaScript

History management comes up often, and Bertrand Le Roy of Microsoft has written about his experience building a cross-browser history management system. Betrand details his foray into dealing with browser quirks of IE, Safari, and Opera: So things are in a pretty grim state currently. It seems like we’re going back (pun intended). We used Read the rest…

Posted by Dion Almaer at 5:44 am
8 Comments

+++--
3.5 rating from 32 votes

Thursday, September 13th, 2007

replaceHTML for when innerHTML dogs you down

Category: JavaScript, Library

Steven Levithan, of RegexPal, ran into some performance issues with innerHTML due to the fact that “every keydown event potentially triggers the destruction and creation of thousands of elements” so he started to look into it. He has a test page that demonstrates the issue. Here is some sample input: 1000 elements… innerHTML (destroy only): Read the rest…

Posted by Dion Almaer at 7:04 am
28 Comments

++++-
4.3 rating from 95 votes

Wednesday, September 12th, 2007

A Cheaky Way to Style an input type=”file”

Category: CSS, JavaScript

Shaun Inman has got a lovely little hack that allows you to style file inputs with CSS and the DOM. These elements are notoriously painful to deal with, and now we have select boxed playing nice on IE, we need something else to fix up :) How It Works We start with a simple replacement. Read the rest…

Posted by Dion Almaer at 8:24 am
19 Comments

+++--
3.6 rating from 138 votes

YUI Dom Collection’s Region methods to the rescue!

Category: CSS, JavaScript, Yahoo!

One of the reason’s I like reading articles by Christian Heilmann is because of his innovative solutions to common problems and his ability to clearly explain the rationale behind the solutions. I was first exposed to this when I was reading his book, Beginning JavaScript with DOM Scripting and Ajax. I became a fan then Read the rest…

Posted by Rey Bango at 7:30 am
3 Comments

+++--
3.3 rating from 23 votes