In CakePHP, If you want to submit a FORM using an AJAX request, use jQuery Form Plugin.
You can find a detailed example at http://marcgrabanski.com/article/cakephp-ajax-quick-save-jquery
An alternative to this plugin is invoking a javascript function, when a submit button is clicked, and which would read all the input data inside the form and send it to the controller.
Subscribe to:
Post Comments (Atom)
Detectron2 + PyTorch CPU : Fix Install issue
Detectron2 + PyTorch CPU ❌ The error $ pip install -q --extra-index-url https://download.pytorch.org/whl/cpu torch torchvision $ pip inst...
-
How to fix Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' Apparently, Ma...
-
If you get the following error while installing FFMPEG or other packages on CentOS 7. Requires: libva.so.1(VA_API_0.33.0)(64bit) Follow...
-
Common error: fallocate: fallocate failed: Text file busy in ubuntu OS Check the allocation: free -m or sudo swapon --show Make sure ...
my comment
ReplyDelete