Здравствуйте Гость ( Вход | Регистрация ) | Выслать повторно письмо для активации |
dudeonthehorse |
Отправлено: Jul 9 2011, 08:48 PM
|
||
Команда ЭйсВэб Группа: Super moderator Сообщений: 763 Пользователь №: 2933 Регистрация: 26-October 09 |
Картина в целом: есть страница с jQuery скриптами и контентом. при нажатии на определенный элемент гружу всплывающее окно аяксом. в загруженном окне не работают jQuery скрипты. решил поступить умнее: нужные скрипты гружу уже в вызываемом окне. если окно оказалось пользователя не нужным, он жмет на закрывающий элемент и происходит
окно исчезает, а вот скрипты из него остаются, что приводит к нехорошему результату если мы откроем еще одно окно, потому что загрузится еще 1 аналогичный скрипт, и открытых окон будет уже 2, так как первый скрипт не был удален, и выполняется дважды. как быть? |
||
dudeonthehorse |
Отправлено: Jul 9 2011, 09:00 PM
|
Команда ЭйсВэб Группа: Super moderator Сообщений: 763 Пользователь №: 2933 Регистрация: 26-October 09 |
Сам дошел до того, что я дурак
Разделил скрипт на 2 файла: 1. открытие окон 2. скрипты для окон |
meta-trader |
Отправлено: Jul 10 2011, 04:26 AM
|
Команда ЭйсВэб Группа: Super moderator Сообщений: 1120 Пользователь №: 1194 Регистрация: 11-October 07 |
Окно закрывается... А скрипты в памяти остаются.
Про аналогичную проблему недавно читал: _http://javascript.ru/forum/css-html-browser/13124-sumasshedshaya-utechka-pamyati-v-opera-pri-ispolzovanii-javascript-v-iframe.html -------------------- Нужен форум для сайта? Создать свой форум Нравятся ролевые игры? Создать форум для ролевой игры - создай ролевую и наслаждайся игрой! Международный сервис фришных форумов - создать форум бесплатно. |
dudeonthehorse |
Отправлено: Jul 10 2011, 09:48 PM
|
Команда ЭйсВэб Группа: Super moderator Сообщений: 763 Пользователь №: 2933 Регистрация: 26-October 09 |
с отменой кеширования аякса скрипты вычищаются при закрытии онка.
|
ruitrjiu |
Отправлено: Dec 7 2013, 09:00 AM
|
Unregistered |
Arch Rooms Style List of Beverly<br><br>Slopes seemed to be created to support develop a facelift for any living space, Cheap Canada Goose structured in regards to sparkling latest white fiberglass imitation of an mid-century Moncler Coats advanced basic typically the Eero Saarinen Tulip 30 desk, with the help of several ergonomic chair through excellent green seat coverings $825, Typically the luxurious place match a tad bit more normally during the room or space, Discount Moncler along with the pedestal design and style hip and legs extracted the main muddled look in my family room. With all the family table and even ergonomic chair when the beginning, Mid-foot ( arch ) Interiors' Christopher Grub along with Bela Turner developed an alternative old style hunt for the family room, completely, every during the average resources needs of your shopper.<br>
Finally, the nook tested big upper limit The appears to be assessed excessive hallway The particular appears to be mentioned big hallway xxxxxx |
|
ruitrjiu |
Отправлено: Dec 12 2013, 10:39 PM
|
Unregistered |
It's probable the fact that your girlfriend stunt never jolt very many people<br><br>This year, the previous Hannah Montana super star Air Jordan has been videotaped smokes Moncler coats from a bong. Your woman said it often the material while in the bong is the appropriate tablet salvia as soon as the video tutorial triggered any scandal. Still Nike Air Max a different online video media come about one year later this appeared typically the artist happily making reference to small to provide a stoner.<br>
Do you consider which Miley's EMAs It might be in all probability of which your girlfriend stunt still did not impact a lot of It's possibly this your girlfriend stunt failed to shock many tttttt |
|