This scenario:
The user inserts his zip code into the input field, and when he clicks the magic button, he sees that the stores are closest to his location. I call the service excellent, and load it with AJAX kindness. Things are good.
Now, instead of embedding the results somewhere on the page, I want it to appear in Fancybox. I just can't do this job.
JavaScript:
$('#button').on('click', function(){
I expect Fancybox to appear and show me the markup from the URL ( nzData ). Fancybox loads, but instead of the content, I get a line that says "The requested content could not be downloaded. Please try again later."
This is not a problem with the service, so I suspect I'm just missing something or raped the Fancybox API. So what am I doing wrong?
EDIT: I forgot to mention, I am using the old version of Fancybox (v1.3.4).
Nix
source share