Farzin.b
Farzin.b

Hi I have preview.htm file, and i want to call function in controller by ajax in this page? How can i do it?

maniek35187
maniek35187

Here is example: https://octobercms.com/docs/ajax/handlers

In your controller function onSubmitContactForm() { // ... }

In preview.htm

1-2 of 2