I’d like to offer a way to my users to promote my website([cool font at fontvilla
The problem is the same origin policy. I know there is a solution (and I use it): they embed a simple div and a JavaScript file. The JS makes an XmlHttpRequest to my server and gets the data as JSONP, parses the data and inserts into the div.
But is it the only way? Isn’t there a better way I could do this? On the Internet there are tons of widget (or whatever, I don’t know how they call…) that gain the data from another domain. How they do that?