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 AJAX Basics (retiring) AJAX and APIs Stage 4 Challenge Answer

Kevin McNamara
Kevin McNamara
7,483 Points

Code not working on workspaces

Hey guys,

So I am trying to use $.getJSON() to get JSON data through Flickr's API to display a list, or gallery, of photos of animals on a site, through workspaces, when a form is submitted. I can not figure out what my error its, but here is my code:

https://w.trhou.se/glmc8if4qd

Any help would be awesome, thanks!

1 Answer

Simon Coates
Simon Coates
28,694 Points

i got rid of the duplicate

  }); // end submit

}); // end ready

at the end and it displayed a gallery. I assume this is what it was meant to do. (unfortunately, i didn't read what the javascript was for an entered a somewhat offensive term into the searchbox. the images i got back did not make me happier.)