[comments-module] Possible to make comment form submit via ajaxCreated 2 years ago by emergingdzns
I'm building a mobile-first app and loading content for elements into a popup on the page. But if the user submits the comments the way it is, it reloads the page and the user loses their place. So, what I'm wanting to do is have it submit the form via ajax with a returned block of json or even html so I can insert it into the comments list on the page.
I'm having some kind of brain aneurysm because I can't wrap my head around how to do this. Should I just have my own controller and stuff the comment into the database or is there some method for adding using the comment module functionality that I'm just not seeing?