Software As She’s Developed

Mahemoff’s Podcast/Blog – Web, Programming, Usability from the Author of ‘Ajax Design Patterns’ (AjaxPatterns.org)

Software As She’s Developed header image 4

Entries Tagged as 'JQuery'

A jQuery Inheritance Experiment

August 9th, 2010 · 2 Comments · SoftwareDev

I like jQuery a lot, but I often find myself re-doing my way of OO and inheritance each time I start a new app. And so, I just did it again of course.

I was starting to write a lame HTML5 game, where you have "AlienModels" (of the MVC, not Star Trek, variety), and each with [...]

[Read more →]

Tags: ·

Automagic Event Registration

March 22nd, 2010 · 3 Comments · SoftwareDev

Further to last night's post on custom events, I've set things up now to use "magic event registration". It's a little like the auto-wiring facility of a dependency injection container. It's quite simple really - the app's initialisation sequence does this:

Register all components that might listen to something. Register all events they might listen to. For each [...]

[Read more →]

Tags: ···

Whoa! jQuery’s Adding User Comments to their Docs

November 13th, 2009 · 2 Comments · SoftwareDev

I just heard on the new jQuery podcast that jQuery docs will be getting comments. jQuery just got a whole - even more - useful. This is direct from the horse's mouth, an interview with jQuery head honcho John Resig.

I've felt for a long time jQuery has been ahead of the pack with its [...]

[Read more →]

Tags: ·

State of jQuery 2009

September 18th, 2009 · No Comments · SoftwareDev

Fred noticed Jon Resig's State of jQuery slides are up:

State of jQuery '09View more documents from jeresig.

Highlights for me:

Now:

Now using sizzle, the quick, generic (not just JQuery), selector engine. Slide 8 show s almost 2* performance improvement on IE6 from JQuery 1.2.6 -> 1.3.2. Performance improvements are apparently dramatic (browser averages):

width() / height() ~4* speedup (good - [...]

[Read more →]

Tags: ··

JQuery IFrame Plugin

September 15th, 2009 · 14 Comments · SoftwareDev

This article by Nick Zakas, covering some technical issues in iframe loading, triggered me to surface a JQuery IFrame plugin I made a little while ago, which supports loading IFrames. (I did tweet it at the time, though I've since changed the location.)

JQuery IFrame plugin

The plugin basically tells you, the programmer of the parent [...]

[Read more →]

Tags: ·····

Modal Dialog JQuery Plugin

August 27th, 2009 · No Comments · SoftwareDev

This has been a while coming, but I made a little "yet another modal dialog lightbox JQuery plugin" thing this week.

Demo and Download for Modal Dialog - JQuery Plugin

It was driven by TiddlyDocs, but I've been wanting one anyway for a while. Mostly because lightbox libraries generally do some hocus-pocus on page load, like applying [...]

[Read more →]

Tags: ·····

Towards A Single Page Application Framework

August 18th, 2009 · 3 Comments · SoftwareDev

Tonight, I was thinking of making a Twitter app to manage my various accounts (I have ~dormant accounts related to projects like @webwait and @listoftweets). The app would be holding username and password details for each of these accounts, so it made sense to build it as a Single Page Application (SPA). This way, a [...]

[Read more →]

Tags: ·····

ColourLovers API – JSON Demos

August 2nd, 2009 · 3 Comments · SoftwareDev

About a year ago, I was excited to discover ColourLovers had an API. There is some great data about colours and palettes on that site, and some great possibilities for mashups - some as general-purpose art projects, and some as tools for designers.

However, I noticed there was no JSON-P interface, so there was no way [...]

[Read more →]

Tags: ·····

TiddlyWeb-JQuery Comments Plugin

July 21st, 2009 · 2 Comments · SoftwareDev

TiddlyWeb-JQuery Comments Plugin - Screencast @ Vimeo

I've extracted from Scrumptious a nested comments plugin you can integrate into any POJA (plain ol' Javascript app). You can find it here in the repo: TiddlyWeb-JQuery Comments Plugin.

As the README explains, usage is a one-liner once you've set it up. Just do $(selector).comments("topic"). The topic is an identifier [...]

[Read more →]

Tags: ····

Google jQuery CDN

January 22nd, 2009 · 8 Comments · SoftwareDev

SUMMARY: Get the latest jQuery here:

http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

For example, cut-and-paste one of the following:

curl -O http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js wget http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

With the release of JQuery 1.3, I thought I'd mention the Google JQuery CDN, one of several libraries you can yoink from Google's Ajax Libraries API. Instead of hosting your own JQuery, you just point your web app to Google's JQuery:

<script [...]

[Read more →]

Tags: ···