AJAX, JQuery, JSON with api help needed please.
Moderator: General Moderators
Re: AJAX, JQuery, JSON with api help needed please.
Check the permissions on the file. It seems the user the Apache user doesn't have read permissions on the file.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: AJAX, JQuery, JSON with api help needed please.
Actually, now that I look at the problem again, it's not file permissions, but a security issue built in to Javascript. To prevent cross domain scripting, AJAX calls cannot be made across domains. So if you're website is hosted at www.yourwebsite.com, you can't make an AJAX request to api.yelp.com.
One solution to this problem is to use JSONP. I've never used it & don't fully understand it so I can't help you with it. If you're using Yelp in the same way others do, then Yelp might have information on how to get around this problem as well.
One solution to this problem is to use JSONP. I've never used it & don't fully understand it so I can't help you with it. If you're using Yelp in the same way others do, then Yelp might have information on how to get around this problem as well.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.