Your bookmarklet will be launched in the context of the current page, not your site. Therefore, XHR calls to your site will fail.
In general, an iframe will work better than a pop-up because of pop-up blockers.
There are other smart approaches you can take. Consider the JSONP model. Or, if you only need one-way communication (i.e., sending some data to your website) and you donβt need an answer, try downloading the GET request URL as the image source. You could even convey a reverse or unsuccessful image if you want to get really fantasy.
<img src="http://me.com/AddLink?UserId=123&url=http://you.com&title=Your+Site" />
gilly3
source share