Category: javascript
« Previous Entries Next Entries »
December 30, 2007
A couple of months ago, a client wanted us to add a survey to one of their microsites to gauge user response. The idea was that if the user clicked a link to a page outside the microsite, then they’d see an in-browser popup window asking them to take a survey. Clicking yes would take [...]
Categories: howto, javascript, jquery |
Tags: ajax login, popup, survey | No Comments »
December 26, 2007
In the summer of 2006, I decided to put together a small web site to show the work I’d been doing, in hopes of landing a full-fledged web job. It didn’t take long before I had an offer from webslingerz, where I’ve been for the last year and a half.
I’ve updated my resume a [...]
Categories: front-end development, javascript |
1 Comment »
December 17, 2007
I just got done with a first draft of the graphTable plugin, which lets you take a simple HTML table and turn the data in it into a graph using jQuery and flot. Here’s a demo, and here’s the jQuery plugin page where I’ll continue development if there’s any interest.
The most basic usage is simple:
$(’#table1′).graphTable({series: [...]
Categories: front-end development, javascript, jquery, plugins |
Tags: flot, graph, table, tabular data | 21 Comments »
December 11, 2007
Given data like:
var data = {
“GUEST” : {
“visits” : 1734070,
“visits_pct” : 74,
“users” : 1,
“net_pv” : 3432781,
“users_pct” : 0,
[...]
Categories: javascript, jquery |
Tags: jquery | No 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 | 3 Comments »
December 10, 2007
Ever wish you could use jQuery on a page at the drop of a hat, without having access to the page itself? Well I’ll be damned, you can.
(This is one of those things that in hindsight seems so painfully obvious that I’m almost embarrassed to admit that it never occurred to me, but admit it [...]
Categories: front-end development, javascript, jquery |
Tags: bookmarklet, jquery | No Comments »
December 8, 2007
Forgot about coming across DateJS in one of my feeds the other day. Haven’t used it yet, but expect I will next time I have to do much of anything with user date input. I’ll be especially happy if it does end up getting integrated with the jQuery UI datepicker ….
Categories: javascript |
Tags: date, datepicker | No Comments »
December 7, 2007
Following up on my 13 seconds of selection hell:
jQuery: what are the fastest selectors?
Turns out that, as you might expect, $(’div.class’) is faster than $(’.class’), and so is $(’div’).filter(’.class’). Knowing where not to look (”skip anything that’s not a div”) helps make jQuery faster. To which you might say, “well duh.” Regardless, the post above [...]
Categories: javascript, jquery |
Tags: jquery, selectors | No Comments »
December 6, 2007
I just came across this post in my Google Blog Search jQuery feed. It’s a quick story of how a developer convinced a corporation to use jQuery for an application, and it caught my eye because I was in a similar boat a few months ago.
A colleague had come up with a concept for [...]
Categories: front-end development, javascript, jquery |
Tags: jquery | No Comments »
December 5, 2007
Before:
// select all elements with an id or name attribute of fieldName;
// some are inputs (name attribute), some are td’s (id attribute)
var $field = $(’#’ + fieldName + ‘, [name=' + fieldName + ']‘);
After:
// give inputs both a name and an id attribute,
// and then just select fields and td’s via id
var $field = $(’#’ [...]
Categories: javascript, jquery |
Tags: jquery, regexp, selectors, vim | No Comments »
« Previous Entries Next Entries »