This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.