Answer the question
In order to leave comments, you need to log in
Why doesn't Fancybox 2 and Ajax work in Chrome?
I can not understand what the problem is, I read all the FAQ's and manuals. Problem still exists.
HTML:
<a class="various" href="ajax-popup/hello.php">Добро пожаловать</a>
$(document).ready(function() {
$(".various").fancybox({
type: "ajax"
});
});
XMLHttpRequest cannot load __path__/ajax-popup/hello.php. Received an invalid response. Origin 'null' is therefore not allowed access.
Answer the question
In order to leave comments, you need to log in
Try to slip it a path relative to the root
<a class="various" href="/path/to/ajax-popup/hello.php">Добро пожаловать</a>
Folder root? Everything is right there. It shows fine in other browsers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question