There is a <script class="script" type="text/javascript" src="../js/main.js"></script> on the main page, but this function will not be called, and in one of the blocks of this page I’m it is necessary to load the content and execute a certain js code, if you load this line <script class="script" type="text/javascript" src="../js/main.js"></script> into the loaded content, then it superimposed and it turns out that the code is executed first 1 time, then 2, then 3, and so on. How can you solve this problem?
- Do not load this line ... into loadable content - Igor
- Well, it does not see the function - Rezzzi CTC
- What do these words mean? - Igor
- Well, that means that there is a function in main js, but it is not called by clicking on an element in the loaded content - Rezzzi CTC
- This is very bad. So you do it wrong. - Igor
|