Ajax response I am getting is always empty!
Interestingly, if I copy paste that URL in browser, I do get a proper html snippet (test ad) back. I guess this is related to some cross-site call stuff. Need some help/pointers as response is not json. Its html code.
Please look at the code – http://pastie.org/1120352
It looks you are fetching data from some different host.
You need to have a look at Same Origin Policy:
For you to be able to get data, it has to be:
Same protocol and host
You need to implement JSONP to workaround it.