Forced to ask the question to the world community, because the support Bitrix parellal not help, referring to the particular solution (2363153 in modern BEADS correctly to show in the popup window, component, result of the AJAX request?).
Have at the entrance of heavy component 2.0 (the other is now not used). A fresh main and ui. Need to request its issuance and show the popup window. And better (since about Bitrix speech) means BX
Standard method (very old) - use of components in AJAX mode. Unfortunately, you quickly find documentation
on the issue could not. There is an old file (it wrote). But its not invest here.
He generally is not suitable (not in order it for subsequent communication and updates only part of the page).
Well, the solution from the developers:
- Bring the component in normal mode, but in a hidden block (and then show a script). This option is not suitable for this task - component heavy and the results not always needed.
- To write a separate PHP script. To do so under its own template. About this is described here.
In the second case, BX.ajax comes into force the configuration settings request, processData, scriptsRunFirst and emulateOnload.
New is controllers AJAX
. But this idea is closer to the REST, because it focused on the exchange of JSON.
Maybe I missed something?