JavaScript


Friday, January 20th, 2006

Ruby in the Browser?

Category: JavaScript, Programming

Paul Hammant says “Bring on text/rhtml on the client side” for Web 3.0: If the client and server technology were pure Java (say Swing), then a refactoring either using the IDEs functions or good old cut and paste would allow you to quickly move the applicable methods from one place to another. It got me Read the rest…

Posted by Michael Mahemoff at 6:33 am
15 Comments

+++--
3.3 rating from 24 votes

jQuery: another small JavaScript library

Category: JavaScript, Library

“We want small libraries. We want them now!” We have yet another contender in the small JavaScript library realm: jQuery. Query is a Javascript library that takes this motto to heart: Writing Javascript code should be fun. jQuery acheives this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them Read the rest…

Posted by Dion Almaer at 4:32 am
12 Comments

+++--
3.6 rating from 32 votes

KavaScript: JavaScript meets Ruby

Category: JavaScript

Do you wish JavaScript was a touch closer to a language like Ruby? Now your dreams have been answered… kinda. A new language called KavaScript is in town: KavaScript breathes new life into JavaScript by extending it with syntax and features inspired by expressive, dynamic languages like Ruby and Perl. KavaScript is a dialect of Read the rest…

Posted by Dion Almaer at 2:54 am
7 Comments

+++--
3.5 rating from 21 votes

Thursday, January 19th, 2006

Onion Skinned Drop Shadows with JavaScript

Category: JavaScript, Library, UI

Brian Williams wrote an article back in time on onion skinned drop shadows. Bob Aman decided that although he liked the drop shadows, he thought it was more complicated than it needs to be to implement it (lots of html and css). So he created a simple wrapper JS that uses behaviour.js to do the Read the rest…

Posted by Dion Almaer at 9:49 am
15 Comments

++++-
4 rating from 360 votes

Wednesday, January 18th, 2006

JavaScript idioms you need to know

Category: Dojo, JavaScript, Programming

Alex Russell (of Dojo fame) has a nice post on fundamental principles of JavaScript you need to really grok the language. Once you understand them, you’ll be well on your way to creating real JavaScript instead of just doing the copy/paste/tweak routine. The key points Alex’s points are: Everything is an Object – even functions Read the rest…

Posted by Rob Sanheim at 10:05 pm
5 Comments

++++-
4.1 rating from 54 votes

PORK.iframe: Form submission with iframes

Category: JavaScript, Library, PHP

Jelle Ursem has created PHP on Rails (kinda).IFRAME, or PORK.iframe. He told us that: I’ve messed around the whole day building on top of moo.ajax building pork.iframe. you can now just do <form method=’post’ action=’index.php’ onsubmit=’new iframe(this); return false;’> and an iframe will automatically be created to update your results asynchronically. As an extra, i’ve Read the rest…

Posted by Dion Almaer at 12:10 pm
11 Comments

++++-
4.2 rating from 21 votes

Moo.ajax: 1.3kb for all your asynchronous needs

Category: Ajax, JavaScript, Library

Valerio Proietti, the creator of Moo.fx, has now created a micro library for Ajax, moo.ajax. I noticed many of you requested if it would have been possible to use the full prototype, instead of the lite one I provided with the full download of moofx, to use its ajax capabilities along with the effects. Sure Read the rest…

Posted by Dion Almaer at 12:02 pm
8 Comments

+++--
3.8 rating from 48 votes

Tuesday, January 17th, 2006

JavaScript Tip: Watch out for “+”

Category: Examples, JavaScript, Tip

Dynamic languages are the cool thing du jour. All dynamic languages are not born equal, and JavaScript is one that happens to be weakly typed. This means that you can keep throwing new types at a variable and JavaScript takes it in its stride. You sometimes get into some problems though, and one of the Read the rest…

Posted by Dion Almaer at 12:21 pm
6 Comments

+++--
3.5 rating from 31 votes

Monday, January 16th, 2006

Lightbox.js – easy image overlays with javascript

Category: JavaScript, Toolkit

Lightbox is a very easy solution to do image overlays in your page. Check out the example at the site, and also note how easy it is to add. Works on “all modern browsers”. Just add the javascript to your page, and add rel=”lightbox” to a link tag to activate. (via Matt)

Posted by Rob Sanheim at 9:45 am
9 Comments

++++-
4.2 rating from 94 votes

Thursday, January 12th, 2006

JavaScript Tip: Running code in the dark

Category: JavaScript, Tip

At a recent client, we were finding strange behaviour occuring in the JavaScript side of the house. After taking a look, the problem was namespace collisions. A couple of the developers were new to JavaScript, and didn’t know about the scoping world. For example, the classic: var foo = “whee”; when placed at the top Read the rest…

Posted by Dion Almaer at 12:11 am
7 Comments

+++--
3.6 rating from 45 votes

Wednesday, January 11th, 2006

Dojo Tips: Cookies, and a nice Curry

Category: Articles, Dojo, JavaScript, Toolkit

Dojo continues to have nice wrappers that make it easy for you to do real things. A couple of topics came up this week such as cookies, and a new curry mechanism: Dojo Cookies Dojo has helper cookie methods wrapped up in the dojo.io.cookie package (src). Example usage: dojo.io.cookie.set(“mycookie”, “my value”, 30); // set ‘mycookie’ Read the rest…

Posted by Dion Almaer at 1:10 am
4 Comments

+++--
3.4 rating from 31 votes

Tuesday, January 10th, 2006

ClearNova open sources ThinkCAP Ajax Framework

Category: Editorial, JavaScript, Library, Toolkit, UI

It seems like a lot of people want to get market share with their Ajax frameworks. ThinkCAP JX is now licensed as open source: Two software companies are beefing up their Web applications using Asynchronous JavaScript and XML (Ajax) and contributing parts of their products to the open-source community to try to spur further Ajax Read the rest…

Posted by Dion Almaer at 1:12 am
2 Comments

+++--
3.6 rating from 35 votes

Better JavaScript: Objects, Functions, and Constructors

Category: Editorial, JavaScript

My case insensitive namesake, dIon Gillard, has started to put out daily blogs that introduce JavaScript to Java folk that don’t think of it as a real language. dIon agrees with Douglas Crockford’s thought that JavaScript is The World’s Most Misunderstood Programming Language. So far his blog gets back to basics as he discusses: Introduction Read the rest…

Posted by Dion Almaer at 12:23 am
1 Comment

+++--
3.5 rating from 15 votes

Monday, January 9th, 2006

J3Unit: javascript testing + jetty and junit

Category: Builds, Firefox, Java, JavaScript, Testing, Toolkit

J3Unit is a new OO testing framework for Javascript with optional integration with Jetty and Junit for automation into your test suite. It builds upon the work done with the Script.aculo.us test unit runner and JSUnit. Of course, you can grab the zip file and just get up and running in static mode. Or take Read the rest…

Posted by Rob Sanheim at 3:52 pm
2 Comments

+++--
3.7 rating from 37 votes

Tuesday, January 3rd, 2006

When do DOM elements become available?

Category: JavaScript

Dave Flanagan asks: when do DOM elements become available to embedded scripts? (i)f you have an element <div id=”foo”>, when can you call getElementById(‘foo’) and be sure that you’ll get a valid result?” It should be so simple! Most people rely on window.onload, though that’s usually later than need be, and Dave comments that it’s Read the rest…

Posted by Michael Mahemoff at 7:22 pm
5 Comments

++++-
4.4 rating from 34 votes

Wednesday, December 28th, 2005

Logging and Ajax: Beyond alert()’s

Category: Articles, JavaScript, Testing, Toolkit

Eric Spiegelberg has written Log4Ajax , an article with corresponding demo code for logging ajax applications. Eric’s article builds upon an earlier, simpler system for logging from Joshua Gitlin’s article Errors and Ajax. It details a logging system in javascript displayed to an in browser console, with the option of sending messages to the server Read the rest…

Posted by Rob Sanheim at 9:53 am
1 Comment

+++--
3.3 rating from 10 votes