JQuery Novice To Ninja - Chapter 6

Hello

None of the examples in chapter 6 work on my Chrome browser. They just continually say “loading” They all work on Firefox.

Any idea why?

Thankss
James

Are you testing these locally? Unfortunately, Chrome doesn’t support Ajax on your local machine—unless you are running it in a server environment like XAMPP or MAMP.

Hi,

If you don’t want to bother installing a server stack just to have Chrome run AJAX requests locally, you can start it specifying the following flag:

--allow-file-access-from-files

Then it’ll behave as you desire.

1 Like

Ok thanks. Yes I was testing it locally. Just wondering if it was anything wrong with my set-up.