Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
AJAX in Liferay
Jamie Sammons, modificado hace 3 años.
New Member
Mensajes: 2
Fecha de incorporación: 15/09/22
Mensajes recientes
I have an interesting problem. I am trying to get some options to be displayed in a dropdown ellipses menu within our dashboard that is built using AG-Grid JavaScript Data Grid controls. To get these options displayed I have to access some logic written in Java in the Backend code.
How can I use Ajax (or any other method), to do this within Liferay (Community Edition)
Jamie Sammons, modificado hace 5 meses.
Junior Member
Mensajes: 59
Fecha de incorporación: 25/03/16
Mensajes recientes
Yes, you can use Ajax with Jquery, AUI or javascipt fetch.
And in backside create a resource command.
To make a resource url, you can do this:
<portlet:resourceURL var="resourceVaraible" id="resourceId"/>
Here an explaination :
https://help.liferay.com/hc/en-us/articles/360017885812-MVC-Resource-Command