I got the regular Form-Package runing on my Site. Then I had to realize that it supports no Ajax. Now I’ve tried the package “onedrop/ajaxform”. But I don’t get it to work. I followed the instuctions on this link but I’m a little confused about what I have to do exactly:
I think it has to do something with the wrong Filepath. Maybe someone can help me where I have to do some changes to get it running. At the moment I didn’t change something from the default TYPO3.Form I insert by following this How To:
Hey guys, I just tested it on your Mittwald server and the currentPage value from the send button is not being transmitted, that causes the form just the reload itself.
Btw: I’m glad you are using Discuss, so the answers are permanent and searchable in Google, but if you have an issue with a package, it’s probably easier to write an issue on GitHub or just directly contact the author. Without @stolle mentioning me, I would not have seen this issue.
Could you check if the form handling is correctly executed and the form is found, by adding some console.log into the form.js where the forms are instantiated (bottom of the file). Maybe your DOMContentLoaded is not fired or something else.
ok it looks like AjaxForm.prototype.onFormSubmit = function (e){ console.log() ... } is not in action.
but AjaxForm.prototype.bindFormSubmitListener = function () { ... this._form.addEventListener('submit', function (e) { return _this.onFormSubmit(e); }); ... }
is working.
Just to document it: The issue has been caused by bootstrap popover which copies the content of the DOM and therefore the form uses its event bindings.