JS code reinitialization

JS code reinitialization was created by RogerRU

Posted 10 years 1 week ago #18784
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!
by RogerRU

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic JS code reinitialization

Posted 10 years 1 week ago #18785
Hi
why not create a DIV inside "foo" to load your results, instead of deleting the slideshow ?
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.970 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 806 guests and no members online