Views: 1558 (Data available since 06.02.2017)

When working with JS in Bitrix Framework both a standard library and third party libraries can be used. Third party libraries can be used only after they have been connected.

An Example of Connection for jQuery

CJSCore::Init('jquery');

For different versions of jQuery and third party libraries:

  • At the place where the library is needed
    $APPLICATION->AddHeadScript('http://libraby-host/library_path');
  • Or in the website template
    <script src="http://libraby-host/library_path"></script>




Courses developed by «Bitrix», Inc.