I
I
Ivan Shumakov2019-04-11 08:57:36
1C-Bitrix
Ivan Shumakov, 2019-04-11 08:57:36

Why doesn't dadata work on my 1C-Bitrix site?

I'm trying to connect the dadata service to receive and fill in the details for the TIN on my website on 1C-Bitrix. The service is not working. In console:

template_13f4014959c0e53d66a9a58cd0eae5f4_v1.js?1554652723583326:1294 Uncaught TypeError: $(...).closest(...).actual is not a function
    at HTMLElement.<anonymous> (template_13f4014959c0e53d66a9a58cd0eae5f4_v1.js?1554652723583326:1294)
    at Function.each (jquery.min.js:4)
    at init.each (jquery.min.js:4)
    at CheckTopMenuDotted (template_13f4014959c0e53d66a9a58cd0eae5f4_v1.js?1554652723583326:1294)
    at HTMLDocument.<anonymous> (template_13f4014959c0e53d66a9a58cd0eae5f4_v1.js?1554652723583326:1294)
    at l (jquery-2.1.3.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.1.3.min.js:2)
    at Function.ready (jquery-2.1.3.min.js:2)
    at HTMLDocument.O (jquery-2.1.3.min.js:2)

I connect additional libraries with code from the official site:
<link href="https://cdn.jsdelivr.net/jquery.suggestions/17.2/css/suggestions.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
                        <!--[if lt IE 10]>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.1/jquery.xdomainrequest.min.js"></script>
<![endif]-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery.suggestions/17.2/js/jquery.suggestions.min.js"></script>

What am I doing wrong? Help - burning

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2019-04-11
@alexey-m-ukolov

It doesn't look like the problem is with Dadat. It's hard to say without a specific site, but your CheckTopMenuDotted function is crashing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question