Generating Twitter button using ajax stopped working


i have coded a seperate link shortner for my website, i want to use the shortened link in the twitter button. for that i had to go around and do something like this :


as the get_short_url. gets the shortened version of link via api from a different domain (which is returning teh required shortened link fine ) using api of that app. it was working fine but stoped working , now twitter button is not rendering. in simple word this chunk of code is not populating the <div class=“ajax”…
Help is appreciated.

closed #2

closed #3