Answer the question
In order to leave comments, you need to log in
What is the best way to make a product search page with many filters and ajax loading?
you need to do something like here
1. sidebar with filters. when something is selected - filters can disappear or new ones appear depending on the choice (server logic is complex)
2. when the user opens the page for the 1st time - he should immediately see the search results. i.e. the first rendering of data should take place on the server using php, and all subsequent ones through ajax
with a reload of the results, everything seems to be simple - after sambit, shade the list and then change html
, but what about filters?
replace the html of the entire sidebar - it will look very crooked and everything will blink,
please tell me what to do? and is the js framework gentle here?
Answer the question
In order to leave comments, you need to log in
Why change the whole, if you can change only the necessary fragment?
There are ready implementations. Google "faceted search" or "faceted filter".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question