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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript

Euangelos Kolimitras
seal-mask
.a{fill-rule:evenodd;}techdegree
Euangelos Kolimitras
Full Stack JavaScript Techdegree Student 3,307 Points

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

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hi there,

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