var pathToAjax = '/bitrix/components/999group/filter/component.php';
$.ajax({
url: pathToAjax,
type: "POST",
data: post,
success: function (data) {
$("#list-employees").html(data);
}
});
В компоненте такая штука:
if (!defined("B_PROLOG_INCLUDED")&&isset($_REQUEST["sessid"])) {
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
if (CModule::IncludeModule("iblock")) {
if ($_REQUEST["sessid"] == check_bitrix_sessid()) {
$id1 = intval($_REQUEST["SECTION_ID1"]);
$id2 = intval($_REQUEST["SECTION_ID2"]);
$arParams = array();
if($id1 > 0)
$arParams["SECTION_ID1"] = $id1;
if($id2 > 0)
$arParams["SECTION_ID2"] = $id2;
$arParams["IBLOCK_ID"] = 32;
$arParams ["SECTION_FILTER"] = "Y";
$APPLICATION->IncludeComponent("999group:filter", ".default", $arParams, false);
}
}
return;
}?> |