M5 allow you to use global code function at AJAX library.
How to use Global code function at AJAX library
1) Create Global Code
Click Global Code.
Click View code on Global Code (Forms).
Write your code. Click Check Syntax, if no error then click Save and close.
Click Save changes.
2) Create AJAX Library
Click AJAX Libraries.
Click Create a new AJAX Library.
Put appropriate AJAX name and AJAX Description. Click Define by code.
Write your code. Click Check Syntax, if no error then click Save and close.
Click Create now.
3) Calling AJAX
To call your AJAX, follow tutorial on this link:
Comments