Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Greetings everyone, I have a question. Is there a way to run AJAX localy in our computer?
Greetings everyone, I have a question. Is there a way to run AJAX localy in our computer? I mean i use a local wamp apache server but its not seems to work.
Thank you in advance!
Have a nice day
Jonathan GrieveTreehouse Moderator 91,243 Points
I know you can use AJAX with a local server but you might be experiencing a "cross origin" error, that is AJAX notices you attempting to make a HTTP request from a local drive on your computer instead of a web server.
I'm not an expert on how this is fixed but try googling solutions for fixing cross origin errors. Here's something srom Stack overflow that I hope will help :) https://stackoverflow.com/questions/3506208/jquery-ajax-cross-domain