How to add a button to trigger an AJAX call #867
-
Hi all, Using a JCB component, I would like to add a button in my edit frontend view that triggers an AJAX call. Answers could be:
Maybe I have to do it manually by modifying the edit.php and adding custom JS... Thank you for your sugggestions... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
you can add custom js and php (ajax) via jcb by going to admin views, and you can find the tabs regarding javascript and php, and the button can be created via normal field creation |
Beta Was this translation helpful? Give feedback.
you can add custom js and php (ajax) via jcb by going to admin views, and you can find the tabs regarding javascript and php, and the button can be created via normal field creation
(note the ajax methods are all stored in the ajax.php model and called via the ajax.json.php controller, so you have to include the controller name in the task like this: task=ajax.methodname