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 trialLorenzo Pieri
19,772 PointsWhat 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
Shawn Anderton
24,124 Pointsif 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" },
Shawn Anderton
24,124 Pointsthere another thing that you can set tagmode (Optional)
$.getJSON(flickerAPI, {
tags: animal,
tagmode: all or any Default is ALL
format: "json"
},
Lorenzo Pieri
19,772 PointsLorenzo Pieri
19,772 PointsThank you for the prompt answer! Appreciated!