is it possible to catch ajax post data from another module in my plugin?

I'm using SimpleForm2 https://allforjoomla.ru/extensions/mod-simpleform2

So this module creates a form and pass post data via ajax to internal index.php file.

In my plugin i want to catch this post data but when i try to get

$get_post = $_POST;
$get_post = JFactory::getApplication()->input;

on onAfterInitialise() event in my plugin, I always get empty arrays.

  • Can you share the code for your ajax request?
    – Lodder
    Jan 16, 2018 at 18:34
  • Need more information to answer it. For example: SimpleForm2 has his own plugin system? And the AJAX, can you give some tips about the receptor of the information? Thanks.
    – troyKoutei
    Jan 18, 2018 at 10:02

1 Answer 1


Direct request into plugin method using com_ajax (https://docs.joomla.org/Using_Joomla_Ajax_Interface), that keeps your flow inside framework as well gives you a bit more security.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.