Category: plugins
April 15, 2009
I had a need today to indicate that at least one of a set of input fields was required. I was hoping there was a direct way to do this in the jQuery validation plugin; while the method isn’t quite as straightforward as I was wishing for, it’s still fairly simple.
To start with, I [...]
Categories: jquery, plugins |
Tags: form validation | 14 Comments »
December 2, 2008
I’ve used curvyCorners and another jQuery corner plugin, but a new jQuery corner plugin just came across my jQuery Twitter feed, so I wanted to check it out.
A quick peek would indicate that it does work in IE6, but it seems to take a very long time for the corners to render. IE7 is [...]
Categories: jquery, plugins |
1 Comment »
June 3, 2008
We recently added a new feature to dailystrength.org, and there was much debate about whether users would use it as we intended. To find out, I wrote a clicktrack ditty that sends some data to the server when a link is clicked. It was somewhat inspired by a post I wrote a while ago about [...]
Categories: analytics, howto, jquery, plugins |
3 Comments »
January 1, 2008
updateWithJSON is a jQuery plugin that updates elements on your page based on key/value pairs in a JSON object. Usage:
$.updateWithJSON(jsonData)
Here’s a demo, and here’s how it works:
iterate over each property/value combination in the JSON object
look for an element in the DOM that matches the property name
first, look for an element with a matching id attribute
if [...]
Categories: howto, jquery, plugins |
1 Comment »
December 30, 2007
Inspired by this from PHP, I wanted a utility function to determine whether a given element came before or after another element in the DOM.
(function($){
$.order = function($a,$b) {
$a = $a.eq(0);
$b = $b.eq(0);
var c = ‘order-test’;
$a.addClass(c);
[...]
Categories: javascript, jquery, plugins |
No Comments »
December 24, 2007
My partner saw the search results page for this blog and, always on the lookout for a way to improve things, suggested that it would benefit from a table of contents at the top. I could do this with Wordpress, of course, but it sounded like a good idea for a jQuery plugin, too.
A [...]
Categories: jquery, plugins |
Tags: table of contents, toc | 7 Comments »
December 24, 2007
Update: I encourage everyone who arrives at this post to check out Ben Alman’s jQuery BBQ plugin — it provides a ton of functionality above and beyond what this plugin offers, is much more robust, and is built to take advantage of the latest version of jQuery. While you’re welcome to use the plugin on [...]
Categories: jquery, plugins |
Tags: anchor, navigation, progressive enhancement | 6 Comments »
December 17, 2007
NOTE: A couple of commenters have pointed out that this plugin has issues in IE. I haven’t had time to look into it, so I’m not sure whether they are related to my plugin or to flot. Make sure you read flot’s readme about getting flot working in IE, I think it will address most [...]
Categories: front-end development, javascript, jquery, plugins |
Tags: flot, graph, table, tabular data | 49 Comments »
December 11, 2007
I’m working on a new template for a client, and they asked me to display some list elements in a random order on each page load. I did my Google due diligence, but didn’t come up with anything that wasn’t slideshow-like — what I wanted was just something that would show all of the children [...]
Categories: front-end development, javascript, jquery, plugins |
Tags: jquery | 8 Comments »