First of all, you are trying to make an ajax call for files inside the module and not part of the module, so it acts like an external php file
modules/mod_feedback/ajax.php . ajax , .
jQuery('.type').bind('click', function() {
var feedId = jQuery(this).attr('id');
alert(feedId);
jQuery.ajax({
type: "POST",
url: "index.php?option=com_yourcomponent&task=yourcontroller.your_function",
data: {"Type":feedId},
success: function(reviews){
alert(reviews);
}
});
});
your_function
require_once( JPATH_SITE.'/modules/mod_feedback/helper.php' );
$reviews = modfeedbackHelper::getFeedbackResultIdea();
echo $reviews; exit;
, Joomla ajax.php, . .
, .