Category Archives: JavaScript

Unobtrusive Form Enhancements

I have had an idea for some time, writing a jQuery plugin that enhances the user experience on forms unobtrusively. I started playing with my plugin jForm but development have halted, and I need inspiration. The goal with the plugin is/was to add things such as input elements as labels, out of the box form [...]
Posted in JavaScript | Tagged , , | Leave a comment

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() == '') [...]
Posted in JavaScript | Tagged , , , , | 3 Comments

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 [...]
Posted in JavaScript | Tagged , , , | Leave a comment

6 Should Read JavaScript Articles

Below I have listed a couple of JavaScript articles you should read to prepare for the awakening of JavaScript as the main web development tool. It doesnt matter if you consider yourself a .NET or Java-developer, if you do not learn JavaScript you will probably have a hard time finding a job within a [...]
Posted in JavaScript | Tagged , , , , , | 6 Comments

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 [...]
Posted in JavaScript | Tagged , , , | 3 Comments

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') ); } ); } } );
Posted in JavaScript | Tagged , , , , , | 5 Comments

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 [...]
Posted in JavaScript | Tagged , , | 1 Comment

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 [...]
Posted in JavaScript | Tagged , , , | Leave a comment

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 , , , , , | 11 Comments