Ajax filtering for projects without the page reload

can you please tell me what I am doing wrong? I am trying to make ajax filtering without reloading the page when clicking filter items, but i fail in displaying them inside myprojects div.

Console is showing correct information like this:

test.json as well as test.json/?filter=Objects and other filters display correct data.

This is my controller test.php:

This is my template test.php:

This is my snippet my-project-test.php:

This is my json template test.json.php:

And finally my test.js:

So i am unable to fill myprojects div with filtered items, it just becomes empty after clicking one of the filters. Maybe someone can point me in the right direction?

have you tried using response.html in test.js line 38? seems like you are storing it like that in the json content representation.

1 Like

You are right mister, thanx!

sure and welcome to the forum :smiley:

1 Like