Hi guys,
I'm aware that I can use jQuery.load() request, but I need my js to trigger another function on success. Is there any way to do it in silverstripe?
What I'm trying to do is to get projects from my database based on their type. User selects the type of the project from the menu (on click), which in turn is passed to the php function. So far I managed to do it with jQuery.load(). However, I need the php function to return back to the template the result of this query and on success js function should update the template.
Do you have any idea how it can be done?
Thanks in advance,
Aga