Blog: javascript Posts đź“”

Sharing ideas and code (RSS available)

test

jQuery lights off effect

September 12, 2011 · 1 min read

I’ve been working on a “lights off” effect for videos the other day. Here’s a demo page (with the appropriate code) that I might turn into a proper plugin if there is...

test

jQuery window.onload equivalent

August 1, 2011 · 1 min read

Last week a reader contacted me noting that my equal heights script was not working. When I took a closer look at his code, I found out that the reason for it...

test

Organizing jQuery Code

May 9, 2011 · 2 min read

Organizing jQuery code is not easy. Up to now, especially on small/medium scale projects, I used to have a huge jQuery ready function and place all my code there. Some times if...

test

Nwrapper jQuery plug in

March 28, 2011 · 1 min read

The plug in I wrote for wrapping every n amount of elements, is finally online at the official jQuery plug in repository. Have a look at the demo page and I’m looking...

test

Wrap any amount of elements with jQuery

February 24, 2011 · 2 min read

Update: Get the nwrapper plugin from the official jQuery plugins site. jQuery provides a large variety of functions for element manipulation, that in most cases will manipulate the selected elements in no...

test

How to create a bookmarklet

November 17, 2010 · 3 min read

A bookmarklet is a small Javascript program stored into a url. A user can bookmark the specific url, and execute the Javascript code on any page. The good news is that it’s...

test

A really simple "equal heights" method for jQuery!

September 29, 2010 · 1 min read

Nothing special, a really basic “equal heights” method written in jQuery. $.fn.equalHeights = function () { var maxHeight = 0; $(this).each(function (index) { var height =...

test

Convert a jQuery object to raw DOM object

July 6, 2010 · 1 min read

There are two, easy ways to achieve this. The first one is simply by using the array [] notation directly on the jQuery object: var myDiv = $("div")[0]; // myDiv is a...

test

Creating an element in jQuery 1.4

June 9, 2010 · 2 min read

Creating a new DOM element in jQuery is super easy. Just add the element of your choice into the jQuery “wrapper” and you’re ready! Really simple. This works like a charm for...

test

4 convenient jQuery tips

June 5, 2010 · 3 min read

I just read the last page of the jQuery Cookbook (great book by the way), and I’d like to present 4 very convenient jQuery tips I used to ignore. Better late than...