JavaScript running to the server

JavaScript continues to get more talk on the server (yes, years after Netscape Enterprise Server!).
John Resig spent a weekend hacking in the zone, to bring the browser to the server.
This resulting environment allows you to do interesting things such as:
Screen scraping
PLAIN TEXT
JAVASCRIPT:
 
load(”env.js”);
window.location = “http://alistapart.com/”;
window.onload = function(){
 load(”dist/jquery.js”);
 print(”Newest A List Apart Posts:”);
 $(”h4.title”).each(function(){
   print(” - ” + this.textContent);
 });
};
 
Web [...]

No Comments

Protoload: Ajax Loading

Andreas Kalsch has written a simple library, Protoload, that handles the Ajax loading events that are common place as a way to show users that something is happening on the server, in a particular location:
E.g. a faw XHR example:
PLAIN TEXT
JAVASCRIPT:
 
 
var R = new XMLHttpRequest();
R.onreadystatechange = function() {
  if (R.readyState == 4) {
    // Do [...]

No Comments

Nielsen/NetRatings: Death of the page view

As soon as Ajax took off, the community discussed how it was the nail in the coffin of the page view. Now, Nielsen/NetRatings agrees.
The AP article details two cases where this change in focus will provide a noticeable change in bigco rankings:
“Ranking top sites by total minutes instead of page views gives Time Warner Inc.’s [...]

No Comments

iPhoneDevCamp Wrapup Including IUI

Internet time is amazing. Watching how the iPhoneDevCamp Barcamp experience created a Flash-mob of ~300 people is amazing. The event was fantastically organized, and everyone wanted to be there. I mean, if you give up your weekend for it, you want to be there.
A lot of good things came out of the weekend.
Christopher Allen kicked [...]

No Comments

Responder: Unobtrusive Framework

Responder is a programmer-friendly framework for unobtrusive JavaScript applications.
It’s a fast and intuitive way to define and encapsulate behaviours based on your HTML class structure that helps you understand your application better.
To use it you will need base2 and my responder script.
To create an in-place editor you would write something like:
PLAIN TEXT
JAVASCRIPT:
 
Responder.create(’editable’, {
 
  initialize: [...]

No Comments

Why choose Dojo?

Choosing a platform for your Ajax applications isn’t a trivial task. There are more choices than you have had hot dinners, and new ones pop up on a daily basis. If a framework wants adoption, it helps to have a story on why a developer should choose that library.
Dojo has just gone out and written [...]

No Comments

Purple Include: Transclusions, you know you want them!

Don’t pigeon-hole Brad with Dojo Offline. He also just announced Purple Include, which is a client-side JavaScript library that allows you to do client-side transclusions. What the heck is a transclusion I hear you say? “A transclusion is the inclusion of part of a document into another document by reference”.
This means that you can include [...]

No Comments

Dojo Offline: 0.9 and Gears

Brad Neuberg and SitePen have released a new beta of Dojo Offline. This release includes a full port to Google Gears, a port from Dojo 0.4 to 0.9, and more.
Features
An offline widget that you can easily embed in your web page with just a few lines of code, automatically providing the user with network feedback, [...]

No Comments

CSS Redundancy Checker

Tom Armitage has written a simple tool that is immediately useful to anyone working with CSS. The CSS Redundancy Checker is a Ruby script that will take CSS rules, and a set of HTML files, and will tell you what you aren’t actually using:
css-redundancy-checker.rb [cssfile] [directory of html files OR .txt file listing urls to [...]

No Comments

iPhone Native Looking Skin

The default look of a web page is pretty bad. Simple white background with ugly black lettering. Nothing nice.
With the iPhone though, it doesn’t look half as bad, and now, thanks to Joe Hewitt (again) there is an even better base.
You can simply use his native looking navigation skin to make your applications look and [...]

No Comments

5 Ways to Optimize Ajax in Ruby on Rails

You’re understandably proud of your latest fancy Ajax interface, but is it wasting your app’s precious resources? In this article on Think Vitamin, Shanti Braford shows you five ways to make sure your Ajax is optimized.
He goes into detail on:
Optimal Database Indexing
Eliminate Redundant SQL Queries
Fragment Caching
Response Text Compression/Minimization
Pre-rendering and Client-side JavaScript Caching
You will note that [...]

No Comments

Bust a Name: Helping you find a darn domain

Ryan Stout’s company recently launched Bust a Name which has the functionality of things like Instant Domain Search , but it also has a “word combiner” where you enter words and the site tries all different combinations of them and lets you know what domains are available based on those combinations. It also lets [...]

No Comments

Hacking Firebug with Dojo

One of the subtle changes in Dojo 0.9 is that you won’t find your dojo.debug() friends. Instead, they have ported Firebug Lite and now you will be able to use the console.* goodness.
The article on this (over at SitePen) also discusses conditional logging and being able to:
PLAIN TEXT
JAVASCRIPT:
 
console.logIf( “api”,     “The call was returned”);
console.logIf( [...]

No Comments

JDocs 2: Now with Ajax

JDocs is a place to search Java API documentation. It does more than just give you the usual Javadoc though. Users can annotate the documentation, Wiki style, and thus the documentation gets better.
This new release is jam packed with Ajax support, from the wiki support, to model queries, and much more.
More: continued here

No Comments

JavaScript as a Language

John Resig has a new opinion piece on JavaScript as a Language that he came up with after poking around with JavaScript 2:
I think we’ve seen the JavaScript language move through many individual phases:
The “We need scripting for web pages” phase. (Netscape)
The “We should standardize this” phase. (ECMAScript)
The “JavaScript isn’t a toy” phase. (Ajax)
The “JavaScript [...]

No Comments