Free
Download the package from the manager of your site.
How to download?
How to download?
Warning! This component requires PHP version
5.4
or higher!
If your site uses PHP less than required, the installation of this
package could break it.
An Extra for MODX Revolution for sending and processing forms using Fetch API.
CMS/CMF MODX Revolution has FormIt component, which implements sending and processing forms, but it works by standard browser method, i.e. with page reloading. But the modern web is demanding and the progressive step is to process them «on the fly». FetchIt, which uses FormIt, is exactly for these tasks, but you can also use your own snippet.
For such purposes there is AjaxForm component (although FetchIt is almost the same in its server part), but FetchIt has some advantages:
FetchIt has no dependencies, while AjaxForm has three: Big jquery library and its jquery-form and jGrowl plugins.
While there's no problem with the latter (you can override methods to show notifications), the first two are tricky.
Minified script weighs 5 kilobytes and snippet registers it with attribute defer, thereby not preventing the page load.
Incorporating your wraparound, adding popup messages and modal windows, these are tasks that you can solve very easily.
CMS/CMF MODX Revolution has FormIt component, which implements sending and processing forms, but it works by standard browser method, i.e. with page reloading. But the modern web is demanding and the progressive step is to process them «on the fly». FetchIt, which uses FormIt, is exactly for these tasks, but you can also use your own snippet.
For such purposes there is AjaxForm component (although FetchIt is almost the same in its server part), but FetchIt has some advantages:
No dependencies
.FetchIt has no dependencies, while AjaxForm has three: Big jquery library and its jquery-form and jGrowl plugins.
While there's no problem with the latter (you can override methods to show notifications), the first two are tricky.
Modern code
.Minified script weighs 5 kilobytes and snippet registers it with attribute defer, thereby not preventing the page load.
Comfort
.Incorporating your wraparound, adding popup messages and modal windows, these are tasks that you can solve very easily.
Documentation
The component has detailed documentation with dozens of examples for all cases.[3.1.2] - 2023-11-11
- Added error for Recaptcha V3.
- Fixed when MODX installed not in the root.
[3.1.1] - 2023-07-14
- Fixed support in php 8.
[3.1.0] - 2023-06-12
- Default notifier library.
[3.0.0] - 2023-06-06
- MODX 3 support.
[1.1.2] - 2023-11-11
- Added error for Recaptcha V3.
[1.1.1] - 2023-07-14
- Fixed support in php 8.
[1.1.0] - 2023-06-12
Added
- Default notifier library.
[1.0.1] - 2023-03-21
Changed
- Fixed undefined fetchit bug when snippet calls by fenom.
[1.0.0] - 2023-03-10
Changed
- Fixed undefined variable $hash.
[1.0.0-beta] - 2023-02-20
Added
- First init.