javascript




Simple Templates with jQuery

Well this post isn't rocket science, but we all have seen the time where it would be nice to have some sort of templating when creating html with javascript. Well unless you need looks and conditions there's a pretty simple solution. Within your html string denote things you need to …



Key Value Pairs of Form Values with jQuery

All to often when working with javascript you want to use javascript to get an object of key/value pairs of the form fields with javascript. The problem comes in when you have checkboxes and selects which accept multiple selections. In these situations its ideal to return an array of …



Getting a List of Checkbox Values with jQuery

Well the other day I was doing some forms and ran into a long list of checkboxes that I needed a list of the values, not a name-value array(so serializeArray() wouldn't help) so I whipped up a small jQuery plugin to return me simply an array of the values …



Simple Yoyo Effects Using jQuery

A few days ago I wrote about Link Nudging, and I got to thinking this could easily be a lot more customizable and flexible, so I added a couple lines more to it and now you can give most any css attribute a "Yoyo" effect. Maybe yoyo isn't the best …



Addition to jQuery Link Nudging

Browsing around the other day I came across a tool by David Walsh called Link Nudging. Basically it simply adds an effect on hover state to increase the left padding, or "Nudge". Take a look at his link nudging demo to get a better understanding. The code is very compact …



JSTween: Javascript Tweening

Thanks to a user commenting on a previous post I now have a new weapon in the arsenal. Jstween is a javascript tweening library which is much more light weight than using a full library like mootools or jQuery. It has the standard color and opacity tweens but also text …



An Attempt to Find Focus

As you may have read from an earlier post I have been searching for a nice solution to figuring out which element currently has focus. Reason being is that it would be nice to detect if any element within Impromptu has focus, if not focus Impromptu. This way it keeps …



JsonSQL Ported to PHP

Thanks to Harry over at Code Bus we now have a PHP version of JsonSQL. For those not familiar with JsonSQL, it allows you to use basic SQL syntax to parse json. Supported syntax includes selects, order by, where, and limit and allows you to apply conditions on objects of …



Google Tech Talks: jQuery

I realize this video is over a month old, but hey, it covers some good material with jQuery. Not to mention the kid presenting is 12 years old. Definitely worth watching!



Simple Gallery Rotation with Mootools

I've was playing around with mootools and threw together a quick little function to do a fade in, fade out rotation of "layers" which would be just an image rotation or whatever you want to rotate. Here's the function: function startGalleryRotation(selector,delay){ var i = 0; var layers = $$(selector); delay …