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 Displaying the Photos

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

What about the TAGS? AJAX Flickr

So, this came to my mind: what If i want to use more tags (like, say, 4 tags!). How do I pass them to Flickr? With an array ?

:) Thanks in advance!

2 Answers

if you want to add more tags you can create comma delimited list of tags like this "tag1, tag2, tag3, tag4"

$.getJSON(flickerAPI, { tags: "tag1, tag2, tag3, tag4", format: "json" },

Lorenzo Pieri
Lorenzo Pieri
19,772 Points

Thank you for the prompt answer! Appreciated!

there another thing that you can set tagmode (Optional)

$.getJSON(flickerAPI, {
        tags: animal,
        tagmode: all or any    Default is ALL
        format: "json"
      },