R
R
ragnar_ok2019-10-24 00:51:00
1C-Bitrix
ragnar_ok, 2019-10-24 00:51:00

How to use CAjax::GetForm()?

I use CAjax::GetForm()in component template catalog.filter.

<?=CAjax::GetForm(
'name="ajaxform" action="formtest.php" method="POST"', 
'formtest',
CAjax::GetComponentID('bitrix:news.list', '.default', ''))?>

In the formtest container, which contains a call to the bitrix:news.list .default component, on submit, the html of the entire page is inserted, and not just the html of the component. How can I force this to be placed in the component's html container?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
ragnar_ok, 2019-10-24
@ragnar_ok

I suggest a course of action:

  • ???
  • PROFIT!
  • A
    Andrey Savrasov, 2019-10-24
    @alcorn

    Above condition
    $APPLICATION->RestartBuffer();
    From below by condition
    die();

    Didn't find what you were looking for?

    Ask your question

    Ask a Question

    731 491 924 answers to any question