rss

Decision Center for Ajax Frameworks

Category : Javascript

Briggs of Athenz has pointed his decision machine at the age old problem of choosing which darn library to choose. Now let the machine choose which library to use rather you choosing the library.

Briggs has developed an application that chooses the Framework for you.

http://www.athenz.com/app/decision/center/ajax

A collaborative decision platform that is designed to help you make better technology decisions.

A sophisticated, yet friendly decision engine to help you prioritize, compare, assess, and synthesize.

  • Share/Bookmark

Using JQuery & Prototype together

Category : Javascript

You would surely have used JQuery and Prototype for dynamic web applications like Lightview, Prototip, etc. Here i would show you how to user them two together, on the same page.

Problem
The Problem JQuery uses a “$” as a shortcut for “jQuery” and Prototype uses “$” as well. We can’t have JQuery and Prototype using the same “$” namespace.

The Fix
Thankfully JQuery has a neat little function called jQuery.noConflict( ) which you basically just need to stick at the top of your JQuery file and replace the “$” alias with “jQuery” for each function. Example:

jQuery.noConflict();
// Do something with jQuery
jQuery(“div p”).hide();
// Do something with another library’s $()
$(“content”).style.display = ‘none’;

Of course, there are other ways of solving this issue with jQuery.noConflict( )

NOTE: JQuery doesn’t get along with MooTools and YUI very well either, luckily this can also be solved with the jQuery.noConflict( ) trick.

  • Share/Bookmark

Amit Yadav is Digg proof thanks to caching by WP Super Cache