I have to decode response message from external web site (so, it's not possible to change the way they return messages), but it does not work in Fancybox modular pop-up where this page is loaded.
I'm using in such way (it works fine when page loads as "simple page", but not - when open this page using Fancybox jQyery plugin):
var response = JSON.parse(decodeURIComponent(h.url.param.get("response")));
the response looks like this:
response={%22Message%22%3a%22response+message+%3Ca+href%3d%27http%3a%2f%2fwww.linktosomeurl.com%27+target%3d%27_blank%27%3Eclick+here.%3C%2fa%3E%22}
it should return "message click here" (and click here is as link to www.linktosomeurl.com
)!
as I said - it works fine when just open page. But the problem is that it does not get response message if open the page in fancybox (somehow fancybox jQuery breaks this response message because of the a href url inside it).
is there a way how I can get this response message with url also using Fancybox?
Any hint about the problem would be appreciated...really stuck with this ;-(