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
Richard Johnson
7,264 PointsRunning ajax code?
How do I run ajax code I have written not on a workspace? I am trying to use the jquery function $.getJSON() aand I am not sure how to test if my code is working. I have the api key from the website I am trying to gather data from. How do I execute the code I have written? Do i need to put my code onto a server? If so how do I do this?
1 Answer
Aldrin Mabanta
11,768 PointsHi Richard - the best way to test your ajax is to use workspace. Running thru your own computer without a server will be impossible. The only way to test if your code works is thru an actual webserver and Workspace allows you to do this.
Go ahead and click on "Launch Workspace" and see it's power come to life :)
Richard Johnson
7,264 PointsRichard Johnson
7,264 PointsYes indeed, I really enjoy using sublime text but conceding and using workspaces has saved me a lot of trouble.