Welcome to the Treehouse Community
Looking to learn something new?
Ciprian Micula5,703 Points
Is what we are doing with AJAX requesting html files in work space the same as if i used a script tag? plz clarify.
I'm not sure whats different between using a script tag in the body or head of the html file or using ajax to request them. Or is this strictly for demonstration purposes and this is supposed to emulate a server?
Neil McPartlin14,662 Points
I'm just learning about this myself but let me share 2 learnings that may help you with your question.
AJAX needs to run on a server. Treehouse 'Workspaces' provides us with a server. Alternatively there are several ways you can configure a local server on your own computer. But trying to use AJAX to communicate between static files on your own computer will not work.