N
N
Nentra2022-02-02 15:38:42
Bitrix24
Nentra, 2022-02-02 15:38:42

BX.SidePanel.Instance.open - Uncaught ReferenceError: BX is not defined. How to connect a class?

How to connect a class, what to write?
to
BX.SidePanel.Instance.open
make it work, not throw an error

scripts.js:15 Uncaught ReferenceError: BX is not defined


this does not work
https://dev.1c-bitrix.ru/api_help/js_lib/sidepanel...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2022-02-05
@gromdron

OK.
0. First, check the version of your Bitrix24.
Ideally, it should be the last, but definitely not lower than 20.
1. This can only be done on the page where the core is connected.
Moreover, the code can be replaced both directly in the file where it is connected, and in the included files on this page.
What is the page: https : //dev.1c-bitrix.ru/api_help/main/general/pag... you either point 1 is not observed (not the kernel at all), or your script works out before the library is connected.
\Bitrix\Main\UI\Extension::load(['sidepanel']);
PS I hope you are talking about the boxed version, because if you are making a REST application (located on your server), then you are here: https://dev.1c-bitrix.ru/rest_help/js_library/addi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question