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: Javascript·JQuery
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: Ajax Patterns·Dependency Injection·Javascript·JQuery
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: Javascript·JQuery
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: Ajax·Javascript·JQuery
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: Javascript·JQuery·Plugin·Project·Scrumptious·Web
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: Ajax·Javascript·JQuery·Lightbox·Plugin·Project
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: Ajax·Javascript·JQuery·Project·SPA·TiddlyWiki
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: Ajax·API·ColourLovers·Javascript·JQuery·Project
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: JQuery·Osmosoft·Plugin·Project·tiddlyweb
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: Ajax·CDN·Google·JQuery