Which method should be used to update only some elements, and not the whole page, when a request is triggered.

Page looks like this

way

And when you select Rating - 4 in filters, the GET request is triggered, and the whole page is updated. How can you implement an update only for certain objects (products on the page, and nothing but this)


I use Django Oscar,

  • Abstract: use javascript and ajax. That is, applying filters should not update the entire page, but should be processed in JavaScript in some way (read filters, form and send a request to the server, receive a response and parse it, place the result on the page). - Chikiro
  • @Chikiro There it is used (JavaScript and AJAX) - but it refreshes the whole page at the request of GET, could you throw off examples or how is this whole method called? - Dolvai
  • @Chikiro and you could not roughly present in the code, this solution - maybe there are already some ready solutions? And I'm not quite sure what to parse and place (although you can know better), just when there is a query on the line - selectedfacets, then Django automatically parses and prepares the view, but it does not update (mine). - Dolvai
  • Unfortunately, I can’t tell you anything in more detail, I don’t know anything about Oscar, and whether there are any similar built-in features in it. - Chikiro

0