A small jQuery Plugin i wrote to slug input fields, enjoy; (function( $ ){ function stringToSlug(str){ str = str.replace(/^\s+|\s+$/g, ''); // trim str = str.toLowerCase(); // remove accents, swap ñ for n, etc var from = "àáäâèéëêìíïîòóöôùúüûñç·_,:;"; var to = "aaaaeeeeiiiioooouuuunc—–"; for (var i=0, l=from.length ; i<l ; i++) { str = str.replace(new RegExp(from.charAt(i), 'g'), …Continue Reading
Yeah yeah i know, HTML5 is the new web 2.0 or whatever and everyone has to blag about it, but to be honest, most of the improvments are pretty good, I’m not just talking about the semantics and the end of XHTML (Hooray) but i wont cover that here. Here is what I’m gonna do, show you what you can do with the geolocation API and Yahoos Placefinder API.