NETTE-LATTE: Include on click
- DatZiggyZig
- Member | 1
I have a question. Can somebody explain me, how can I include another .latte file and send dynamic data with it?
I am creating api function, where you should be able to get information about company just by writing it's name. When I click to search, I can see in console that my request is getting through and sending back response, with correct data, but it won't refresh already loaded data.
Some examples of my code:
.latte:
javascript:
- dkorpar
- Member | 136
You probably need this:
https://doc.nette.org/…ication/ajax
see also https://naja.js.org/