JS code reinitialization
11 years 1 month ago #18784
by RogerRU
JS code reinitialization was created by RogerRU
Hi
On main page of my site i have container with Slideshow CK
<div id="foo">
... (SlideshowCK code)
</div>
in the same container I try to load search results via ajax
var savedContent = $("#foo").html(); // save Slideshow CK code
// ... insert search results via aja
$("#foo").html(savedContent) // after clear search results, restore Slideshow CK code
After this JS of Slideshow CK stop working.
Q: How i can reinitialize JS of Slideshow CK?
Thx!
On main page of my site i have container with Slideshow CK
<div id="foo">
... (SlideshowCK code)
</div>
in the same container I try to load search results via ajax
var savedContent = $("#foo").html(); // save Slideshow CK code
// ... insert search results via aja
$("#foo").html(savedContent) // after clear search results, restore Slideshow CK code
After this JS of Slideshow CK stop working.
Q: How i can reinitialize JS of Slideshow CK?
Thx!
Please Log in or Create an account to join the conversation.
11 years 1 month ago #18785
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic JS code reinitialization
Hi
why not create a DIV inside "foo" to load your results, instead of deleting the slideshow ?
CEd
why not create a DIV inside "foo" to load your results, instead of deleting the slideshow ?
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds