Ajax navigation / external javascript
Hi all,
i have some problem with javascript after click on link with navigation ajax
I have in my home page, a carousel (jquery carousel for touch ui).
When the page is full loaded, the carousel work good.
now i switch with a link, come back to my home page, carousel work but bug a bit.
I think i need to remove cache...
- $(document).bind('pageinit',function(){
- jQuery(function($) {
- $(".carousel-single-image").touchCarousel({
- pagingNav: true,
- scrollbar: false,
- directionNavAutoHide: false,
- itemsPerMove: 1,
- loopItems: true,
- directionNav: false,
- autoplay: true,
- autoplayDelay: 5000,
- useWebkit3d: true,
- transitionSpeed: 400
- });
-
- $(".carousel-image-and-text").touchCarousel({
- pagingNav: false,
- snapToItems: false,
- itemsPerMove: 1,
- scrollToLast: false,
- loopItems: false,
- scrollbar: true
- });
-
- });
- });
I do that on my home page.
my second page is empty.
Here my link for switch with a slide effect :
- <a href="index.php" data-prefetch="false" data-dom-cache="false" data-transition="none" class="ui-btn-active ui-state-persist">test</a>
Any idea for clear or remove cache ?
Thank all