-
Categories
Archives
- February 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- September 2006
- August 2006
- July 2006
Category Archives: JavaScript
jQuery Plugin for using default value as label
Wrote a little plugin for using the default value in text elements as label, you know. Look at the right hand side in the newsletter form for an example.
$.fn.label = function(options){
var default_settings = {
clearLabels : true
};
var settings = $.extend(default_settings, options);
return this.each(function(){
var elm = $(this);
if($(this).val().length > 0) {
$.data(elm, 'default', $(this).val());
elm.focus(function(){
if($(this).val() == $.data(elm, 'default')) {
$(this).val('');
}
}).blur(function(){
if($(this).val() == '') [...]
John Resig + Ars Technica = True
John Resig, Mr jQuery, has his first article out on Ars Technica, it is about Extreme JavaScript Performance, where John discuss performance of JavaScript Engines SquirrelFish Extreme, TraceMonkey and V8.
Interesting to start read John on Ars Technica. He plans on being a regular poster:
I plan on contributing an article per week, or so, on topics related [...]
DOMAssistant 2.7 released with unicode support
Robert Nyman announced that DOMAssistant 2.7 was released today. They have some good competiton from jQuery, Prototype, MooTools, Ext and all the others. Interesting to see that DOMAssistant is the first library to actually take things like Unicode-support seriously. Of course localisation and full unicode support will be added to jQuery and Prototype in some [...]
jQuery, Thickbox and Google Analytics
Today I had to find some way to track the links within a page using Google Analytics, jQuery and Thickbox. With the new ga.js it is pretty straight forward:
$(function(){
if(typeof(pageTracker) != 'undefined') {
$('a.thickbox, area.thickbox, input.thickbox')
.click(
function(){
pageTracker._trackPageview(
$(this).attr('href')
);
}
);
}
}
);
jquery validation plugin checklist
Jörn Zaefferer on the jQuery blog validates his own validation framework against a very good list : My blog article Form Validation with Javascript where I stress 10 points to think of when creating a client side validation framework written in JavaScript.
Read more in these post:
About client-side form validation and frameworks on jQuery [...]
jQuery just got 800% faster
Today jquery just got 800% faster. Not bad for a decimal-release. Only one release more will be made on the 1.1 code base.
With this speed increase I think jquery just won the library-war, a measure of its success is the number of diggs it has generated the last 9 hours, approx 1000 and growing.
Good [...]
10 Must have jquery plugins and extensions
Below you find 10 jquery plugins and jquery extensions you cannot do without if you are a serious front-end developer
Easy DOM Creation with jQuery
Form plugin
If you are doing AJAX-stuff, you must have this plugin.
Dimensions
This plugin should be a part of the jQuery Core.
Interface
This library solves 90% of your user interface issues. Excellent work Stefan!
Thickbox 3
Note [...]
Posted in JavaScript Tagged Ajax, Featured, Interaction Design, Interface Development, JavaScript, jQuery 11 Comments
Unobtrusive Form Enhancements