I don’t know what my fascination with ajax is. I have only used it commercially once. I think it’s just all the great possibilities for web development that it creates. For that reason there can definitely be a better default function then the one I’d published earlier. While functional it certainly wasn’t very elegant.
I’d like to say I came up with the new version I’m publishing, but I’ve actually stolen it from Sitepoint. That being said it’s not a simple copy and paste, but I’ve modified it to increase functionality. So without further ado.