L
L
Lici2014-06-27 08:18:15
PHP
Lici, 2014-06-27 08:18:15

The pass-through button (JavaScript) does not work on only one page, why?

It's about the online consultant button. It is above and to the right.
Here is the site: tkstour.com
Here is the problematic page tkstour.com/search_tour
So, the consultant opens everywhere except this page.
For the test, I created more pages with searches (this search is from a third-party service). Everywhere this problem:
tkstour.com/testovaya-poisk
tkstour.com/test-poiska-2
tkstour.com/test-poiska-3
The chrome console writes "Uncaught TypeError: undefined is not a function".
This is what the inserted code looks like:

<div id="tour_search_module"></div><script src="http://module.ittour.com.ua/tour_search.jsx?id=D236465787G4N7754050704&amp;ver=1&amp;type=2970" type="text/javascript"></script>

And that's just on one page. And exactly where it is most needed. On ALL others - works. And there is no way to catch the floor - why?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
anlamas, 2014-06-27
@Lici

try typing in the console loadCookie ()
after that the consultant opens

R
Roman Zhak, 2014-06-27
@romanzhak

At the moment the error is:

Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'cookie'

@
@antoo, 2014-06-27
_

This page does not load the jQuery.cookie module, possibly due to third-party search. In general, the code is very crooked, so jambs come out and it's hard to find the reason.
It makes sense to try adding script initialization http://tkstour.com/consultant/js/cookie.jsto head

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question