jQuery vs. Prototype
June 23, 2008
just put both libraries on wordle to visualize on which each library have focused.
Here are the results:
jQuery
Prototype
just put both libraries on wordle to visualize on which each library have focused.
Here are the results:
jQuery
Prototype
I finally was able to fix a few minor bugs and compile a new version of my js-hotkeys module. Get your copy now (tar.gz || zip)
Js-Hotkeys is a jQuery plugin that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.
Read more at:
http://code.google.com/p/js-hotkeys/wiki/about
Live demo at:
http://jshotkeys.googlepages.com/test-static.html
Most of today’s web developer will tell you that
the following:
<h2 id=”foo”>Click Here</h2>
<script>
$(’foo’).click = function(){alert(”Hello”)};
</script>
is better than:
<h2 id=”foo” onclick=”alert(’Hello’);”>Click Here</h2>
and the following:
<style>
body{
background-color:#ffffff;
color:#000000;
margin-top:3}
a{color:#0000cc}
a:visited{color:#551a8b}
</style>
<body>….</body>
<script>
$(document).ready(function(){
sf();
if(document.images){
new Image().src=’/images/nav_logo3.png’;
[...]
jQuery Keyboard Shortcut Hooker Plugin is now called Hotkeys. Make sense, right? The script was tested on Linux, Windows, and MacOS, IE, Safari and Firefox.
The final result is relatively small file (121 lines of code). But do not let this fact misleading you by underestimating its value.
> See Live Demo
Read more at Google Code [...]
I rewrote (granted permissions by author) the great JavaScript module by Binny V A shortcut.js as a jQuery plug-in.
Code Sample and download a pre alpha version are available at Google Code
Cheers,