June 2010
35 posts
Jun 29th
Experimenting with CSS gradients →
Jun 28th
was it up? →
Nice and simple website uptime monitoring service - much better than AreMySitesUp.com which doesn’t even work anymore…
Jun 25th
1 tag
Jun 25th
Jun 24th
Jun 23rd
2 tags
jQuery: Search an array with partial matches
Need to find an element in an array with partial matches? Try this: /* JavaScript indexOf with partial matches for a jQuery array eg: $(["boat", "sheep", "goat"]).arrayFind("he") => 1 eg: $(["boat", "sheep", "goat"]).arrayFind("oat") => 0 */ $.fn.arrayFind = function(obj, fromIndex) { if(fromIndex == null) fromIndex = 0; else if(fromIndex < 0) fromIndex = Math.max(0, this.length +...
Jun 21st
3 notes
2 tags
jQuery: Reverse the order of a collection
Ever wanted to reverse the order of a collection of DOM elements in a jQuery object and tried to use Javascript’s reverse() method? Well now you can: /* Reverse a jQuery collection eg: $("div").reverse().each(function() { ... }); */ $.fn.reverse = function() { return $(this.get().reverse()); } No idea at all why this isn’t included in jQuery by default…
Jun 21st
Jun 21st
1 note
2 tags
jQuery live() not working?
“DOM traversal methods are not fully supported for finding elements to send to .live(). Rather, the .live() method should always be called directly after a selector.” live() must be used directly after a selector, you can’t use it after a DOM traversal function such as filter() or not()
Jun 20th
2 tags
Facebook Connect not working?
Apparently Facebook Connect relies on Flash “on some browsers” (which includes Google Chrome…) and so if your users are blocking flash - no Facebook Connect functionality for you! Something to remember if you’re building a site that relies on Facebook Connect — you’ll be wanting to detect flash blocking and display a message. Hope this saves some poor soul...
Jun 20th
Jun 19th
Notifo →
Notifo is a way for users to receive mobile notifications for anything. Services integrate with the Notifo API and send users notifications about events, announcements, whatever!
Jun 18th
1 tag
jQuery Plugin: JSON →
JSON plugin for jQuery, provides simple ways to convert to JSON and back again.
Jun 17th
Online javascript beautifier →
Jun 16th
New Zealand Postcode Database (V2) | Noodles' Blog →
Can’t believe this is the only resource of its kind on the web (that I could find at least)…
Jun 16th
Jun 16th
1 tag
A Simple and Robust jQuery 1.4 CDN Failover in One... →
Jun 16th
Jun 16th
Jun 16th
Jun 15th
Jun 14th
3,681 notes
Jun 14th
316 notes
Jun 13th
2 tags
Javascript RGB to Hex and Hex to RGB converters
Couldn’t find a single source with both these functions anywhere, so I’ve made my own and posted them here for everyone’s reference. Convert a HEX value #FFFFFF to an array of RGB values [255,255,255] // convert hex to rgb function hex2rgb(hex) { hex = (hex.substr(0,1)=="#") ? hex.substr(1) : hex; return [parseInt(hex.substr(0,2), 16), parseInt(hex.substr(2,2), 16),...
Jun 12th
Jun 10th
Google Font Directory →
This is awesome. Google is awesome.
Jun 8th
Delicious Library →
Catalog your books, movies, music, software, toys, tools, electronics and video games by simply holding them up to your webcam.
Jun 5th
The All-In-One Almost-Alphabetical No-Bullshit... →
Simple ways to detect browser support for (almost) every HTML5 feature.
Jun 5th
Jun 4th
7 Awesome CSS3 Techniques You Can Start Using... →
Jun 4th
1 tag
Jun 3rd
Jun 1st
1 note
Jun 1st