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
enayat karimi
235 Pointshow to create a filter
I would like to create a filter in a website for example laptop screen size then weight etc....
example ebay website filter. and i need to store data in jason.
2 Answers
Matt Campbell
9,767 PointsFilters are just db queries with a pretty UI. Selecting one fires a different query to the database and thus returns different information. It's the job of a front end developer to make the back end functionality look nice and work for humans to understand and interact with.
I'm not sure why you'd want to store the data in json though, as there isn't really anything to store.
Are you thinking of building an ecommerce site or something?
enayat karimi
235 Pointsthanks, just want to build a ecommerce website as part of a project, fix requirement is using json to store details about stuff for selling plus using the AJAX.