Zudjo Posted November 16, 2023 Share Posted November 16, 2023 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? Link to comment Share on other sites More sharing options...
WisQQ Posted November 16, 2023 Share Posted November 16, 2023 Depends, does your module have a controller? If yes then you only have to add one function handling ajax Calls. Link to comment Share on other sites More sharing options...
dnk.hack Posted November 16, 2023 Share Posted November 16, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now