Create a TinyURL with JSONP

Recently I’ve been non-stop with JSONP, I love and hate it! (to find out why, see my last post!)

Anyway, David Walsh recently posted a new How-to tip on his site: "Create a TinyURL with PHP" – His tutorial taps into the TinyURL API to retrieve the shortened URL which you can then display on a page.

For those that don’t want to get their hands dirty with PHP there is a very simple way to do it with just JavaScript, Ajax is not needed!