Skip to content

How to add a button to trigger an AJAX call #867

Answered by aradwan-mcg
fred-the-coder asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@aradwan-mcg
Comment options

@fred-the-coder
Comment options

@Llewellynvdm
Comment options

@fred-the-coder
Comment options

@Llewellynvdm
Comment options

Answer selected by fred-the-coder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants