I am trying to implement the Google URL shortener API with the help of jQuery by making an AJAX call. I have done something like this:
$(function() {
$(
You can use a dynamic script tag to make cross domain ajax calls. As pointed here this method has some problems: It's difficult to know when the content is available, there is no standard methodology, and can be considered a "security risk".
However the method works fine in my case. refer to here for a good example. The approach is a bit tricky.