JS code reinitialization

More
11 years 1 month ago #18784 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!

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

More
11 years 1 month ago #18785 by ced1870
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

Joomlack Webmaster and Developer

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

Time to create page: 0.204 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 808 guests and no members online