I've looked through simiilar questions on SO, but can't seem to find one addressing what seems like a simple call..
function TweetThis(url)
{
$.ajax({
url: "http://tinyurl.com/api-create.php?url=" + url,
cache: false,
success: function(data){
alert(data);
}
});
}
Basically I want to call TinyURL with an Ajax call and a long URL and return the shortened URL.. The success never fires, but when I check the URL it builds it returns fine in a browser.
Looking in Firebug it doesn't show response coming back.. what am I missing?