2degrees Mobile & 1Password settings
Trying to get 2degrees in NZ to work with 1Password? Here are the settings! This is tested in both FireFox and Chrome on a Mac.
Note: hdnAction and externalURLRedirect both need to be checkboxes to work in Chrome.

New Twitter no longer accepts url encoding spaces as +
At the end of every SitePoint Course lesson there’s a link to shout out to Twitter that you’ve completed that days lesson. We try and mix these up as much as possible, from the original “Woohoo! I just finished day 1…” to the more obscure “Bickity Bam!” and “Holy Guacamole”.
Most recently we’ve noticed a few tweets in the form “Bickity+Bam!+I+just+completed+lesson+7+of+SitePoint’s+CSS3+Live+course+#css3live”, and on investigation it looks like once New Twitter was rolled out, Twitter no longer accepted the more common method of encoding spaces as a + sign, and only accepts the strict RFC 3986 specification of %20.
If you’re a PHP user, this simple means swapping from urlencode() to rawurlencode().
$url = urlencode("http://twitter.com/?status=What are these plus signs?"); // Bad
$url = rawurlencode("http://twitter.com/?status=No plus signs here mofo'"); // Good
Done.
Update This is actually more likely to be part of their security upgrades after the url injection issues they were having
Browser doesn’t fire Blur before onBeforeUnload event
While playing around with the Dirty Forms plugin I realised that the blur event of an input was not being fired when refreshing the page. This happens in Chrome and FireFox (and most likely others). I decided I’d see what I could do to handle this, and came across the document.activeElement property which is available in all recent releases of browsers – apparently even IE – and it’s part of the HTML5 spec.
$(window).bind('beforeunload', function(){
if(document.activeElement) $(document.activeElement).blur();
});
Apple Says My Face Causes Cellular Interference
While lying on the couch coding tonight, I had my iPhone 4 tucked under my chin. I don’t know why – it was just comfortable. Anyway – after a while, it popped up with a message saying that I had attached an incompatible accessory and it would possibly cause cellular interference. Apparently my face is incompatible with the iPhone 4.
Event Target for Submit wrong in IE7
While working on the Dirty Forms plugin, I discovered – much to my annoyance that when firing the Submit event, IE7 passes the target property as a reference to the submit input (if you clicked it) rather than what every same browser does, which is pass the form as the target.
This is easily fixed with jQuery
var target = $(event.target);
if(!target.is('form')) target = target.closest('form');
jQuery Live Binding to Submit in IE7
While working on Dirty Forms, I was running into issues getting IE7 to work with binding to the Submit event on a form, using the .live() method.
It turns out that jQuery 1.4.2 has a bug which doesn’t allow this to work, so you should use 1.4.3 or higher.



