Archive for December, 2007
« Previous Entries
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 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 | 2 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 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
I remember when I first tried to understand how to produce designs for the web — coming from the paper-based world, it was hard for me to accept everything that was suddenly out of my control. When I first tried to grasp CSS with the help of now-defunct Adobe GoLive, I bailed pretty quickly. Table-based [...]
Categories: css, front-end development, standards, thoughts |
Tags: css, how-to, tutorial | 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 23, 2007
When I started this about a month ago, I just grabbed a template that didn’t look too awful, changed a few colors, got rid of all the pixel-based font-sizing, and hoped that no one would look under the hood until I had some time to do it myself from scratch. With the holidays here, I [...]
Categories: blogging, css, front-end development, standards |
Tags: themes, wordpress | No Comments »
December 19, 2007
I was receiving a JSON string that contained an HTML entity, like this:
{ myValue: ‘€30,000′ }
I was supposed to put the value of myValue into a text input. I assigned the value to a variable and tried:
$(’#myInput’).val(myValue);
but that was putting the string, literally, into the input:
€30,000
— this in spite of the fact that this [...]
Categories: jquery, troubleshooting |
5 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 14, 2007
I just got done troubleshooting an issue with a page with some jQuery on it. The jQuery was in a script called from the head of the document, and its job was to rearrange some elements into tabs once the page was loaded.
In unpredictable cases (sequential reloads had different results), loading the page in [...]
Categories: front-end development, jquery, troubleshooting |
No Comments »
« Previous Entries