M
M
Mike Khromov2014-04-10 16:29:34
fancyBox
Mike Khromov, 2014-04-10 16:29:34

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>

JS:
$(document).ready(function() {
  $(".various").fancybox({
    type: "ajax"
  });
});

Works in all browsers except Chrome. Chrome console says:
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

2 answer(s)
R
riotvictim, 2014-04-10
@riotvictim

Try to slip it a path relative to the root

<a class="various" href="/path/to/ajax-popup/hello.php">Добро пожаловать</a>

M
Mike Khromov, 2014-04-10
@MikeSilence

Folder root? Everything is right there. It shows fine in other browsers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question