I trying to use this module LINK for learning purpose, but when make the ajax request the response is a error message "Not Found"
Somebody say: Routing should change in j3.6
But the only external file to the included module is this and I think the route is fine.
include_once JPATH_ROOT . '/components/com_content/helpers/route.php';
Why can not you find the path to the file?
Or
What file does it need to work?
I just checked your module, and found a silly mistake made by you. its not about route file. Problem lies in your renaming the module to mod_jd_arq. Previous module name was mod_ajax_search, therefore it was written as
request = {
'option' : 'com_ajax',
'module' : 'ajax_search',
'data' : value,
'format' : 'raw'
};
You need to change this to
request = {
'option' : 'com_ajax',
'module' : 'jd_arq',
'data' : value,
'format' : 'raw'
};
in your mod_jd_arq.php file.
Also in place of
var value = $('input[name=data]').val(),
in the same file on line 13. You can change it to
var value = $('input[name="data"]').val(),