Jump to content

How to refresh module template ajax


Recommended Posts

I have a module that displays what you see in the attached image.

When I add a new link or remove an old one, obviously I can't see the changes until the page is refreshed.

How can I refresh only the module template? Or better yet, only the <ul> element of the link list?

Screenshot from 2023-11-16 16-33-37.png

Link to comment
Share on other sites

1. You must have or create a Front Controller

2. The Front Controller must have a method ajaxProcessYOR_CATION_NAME

3. This method has to fetch your TPL with new content.

4. Your. JS function by jQuery Ajax makes a request to the front controller, gets new content, and replaces the HTML 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...