Skip to content

Tag Archives: javascript

Introducing jQuery.whiny.js

11-Jul-11

We’ve all done something like this: $(‘#id’).text(‘new text’); And wondered why the code wasn’t working only to find out the selector was wrong. jQuery.whiny.js attempts to solve this problem by altering the jQuery library so the jQuery() method will create a console warning if an empty jQuery object returned. In the above example, if ‘#id’ [...]

jQuery Selector Injection

28-Jun-11

First off, this type of issue is more theoretical than anything. jQuery allows you create HTML elements on the fly via the jQuery() method. Creating new HTML elements using this technique is common in the jQuery world since it results in more readable, jQuery-esque code. Potential client-side code injection issues can arise if malicious input [...]

Facebook Psychic Mode

18-May-11

One thing that I’ve always enjoyed about the Pidgin chat client is the Psychic Mode plugin. This plugin basically detects when you receive an event from a given chat network that another user is typing a message to you. If you do not have a chat window open with that user, one will suddenly appear [...]

Introducing a New jQuery Google Maps Script

14-Apr-11

This script is similar to the one I wrote a few years back. This time however, it’s a jQuery plugin. Head on over to the github project for more details.

Flash ExternalInterface Internet Explorer Gotcha

14-Mar-10

Just learned this one the hard way. Apparently in Internet Explorer, a Flash application cannot use the “ExternalInterface” to add a callback named ‘play’. This list of reserved words also includes ‘stop’, ‘tags’, ‘item’ and possibly others. Makes sense, but it took me a while to figure this one out since it is does not [...]