D
D
DYLAN2019-04-10 19:04:34
1C-Bitrix
DYLAN, 2019-04-10 19:04:34

Is it possible for the browser to work with JS when navigation emulation is enabled?

The essence of the problem is this: if you enable browser navigation emulation in a component (for example, catalog), then when you go to the previous page, JS in the component stops working. Something tells me that it is impossible, because even in the default template from BX this does not work. And if you just insert some JS code into the DOM, then by itself it will not be executed, but still I will ask to dispel all doubts.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Belai1987, 2020-08-03
@Belai1987

Exactly the same pain! I couldn't find a solution, but I did )))
BX.addCustomEvent('onComponentAjaxHistorySetState', function()
{
console.log('onComponentAjaxHistorySetState');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question