Activate your free membership today | Log-in

Friday, October 19th, 2007

jQuery Logging

Category: Library, Tip, Plugins, jQuery

Dominic Mitchell has created a mini jQuery logging plugin that ties Firebug to the call chain.

This means that if you are debugging something you can quickly add a .log("....") in the chain:

JAVASCRIPT:
  1.  
  2.   jQuery.fn.log = function (msg) {
  3.       console.log("%s: %o", msg, this);
  4.       return this;
  5.   };
  6.  

Now, I can just stuff a call to .log() in the middle of what I’m doing to see what I’m currently addressing. e.g.

JAVASCRIPT:
  1.  
  2. $(root).find('li.source> input:checkbox').log("sources to uncheck").removeAttr("checked");
  3.  

The nice thing about logging to firebug is that each node becomes clickable in the console, so you can immediately see the context.

Posted by Dion Almaer at 11:05 am
12 Comments

++---
2.5 rating from 66 votes

Wednesday, August 29th, 2007

AjaxRain.com gets a facelift, tops 600+ Ajax/JS/RIA controls

Category: Ajax, Plugins, Roundup

AjaxRain.com, the site dedicated to aggregating Ajax, JavaScript and RIA controls & libraries, has gotten a cool facelift and some much needed features. On top of that, they continue to post controls at an amazing rate with 638 submissions at last count.

Some of the new nuggets include:

  • Storing favorites
  • Comments
  • Voting on entries
  • Date that a submission was posted
  • Enhanced search
  • Expansion into posting RIA components based on SilverLight & Flex

MiniAjax.com, a site that was doing the same thing and started off with a bang, has since gone stale and it looks like AjaxRain now leads the pack. Are there other sites like these? If so, post the links in the comments.

Posted by Rey Bango at 1:00 pm
7 Comments

++++-
4.4 rating from 24 votes

Monday, August 7th, 2006

Ajax3D - the Next Arc up the Hype Curve

Category: Editorial, Plugins

Overuse a term and it becomes meaningless. How much meaning is still in the term 'Ajax?' Media Machines tries to wring a little more buzz out of it -- first take an X3D and VRML browser plugin with ECMAScript bindings (Flux), combine it with XMLHttpRequest and voila! You've got Ajax3D. At least that's what you have according to their latest press release.

Media Machines, Inc., a leading provider of open source, real time 3D communications on the web, today announced Ajax3D™, a Javascript-based software library and development paradigm for deploying online virtual worlds and 3D web applications based on Ajax and X3D. The company also issued an open call for participation in an industry forum at www.ajax3D.org, dedicated to the research and development of online virtual worlds using 3D open standards and Ajax best practices.

A quick look at www.ajax3D.org reveals a somewhat anemic collection of forums and 'tutorials.' You have to view source and download the javascript files to figure out what's going on.

JAVASCRIPT:
  1. //ajax3d.js
  2. var browser = null; var context = null; var listener = null; var listenersSetup = false;
  3. function initAjax3d(filename)
  4. {
  5.    browser = null;   context = null;   listenersSetup = false;
  6.    browser = document.FLUX.getBrowser();
  7.    if (browser != null) {
  8.       listener = new Object();
  9.       listener.browserChanged = browserChanged;
  10.       browser.addBrowserListener(listener);
  11.       if (filename != null)
  12.          browser.loadUrlS (filename);
  13.       else
  14.          context = browser.getExecutionContext();
  15.    }
  16. }
  17. // [snip]
  18. function createX3DFromString(str) {
  19.    var scene = browser.createX3DFromString(str);    var rootnodes = scene.getRootNodes();    var i;
  20.    // Do a bit of work to deal with the quirky X3D add/remove root node paradigm
  21.    for (i = 0; i <rootnodes.length; i++) {
  22.        node = rootnodes[i];
  23.        scene.removeRootNode(node);
  24.        context.addRootNode(node);
  25.    }
  26. }

There's no documentation to speak of, unless you head over to www.web3d.org and read through their obtuse standards documents. To Media Machines' credit, they did just release the source of their plugin to open source, so you could crawl through the code to figure out all of the bindings. Even so, how much is the 'Ajax' involved with '3D'? Not a whole lot. Certainly not enough to warrant the coining of a new term and the issuing of a press release.
Update 1: The ajax3d.org site now does have some text to go with the tutorials. Was I too harsh in my assessment of Ajax3D as an excercise in hype? I don't have anything against the 3D or VRML folks, but unless you can show me 3D without a plugin, I'm still a skeptic.

Posted by Dietrich Kappe at 5:45 pm
12 Comments

+++--
3.1 rating from 25 votes