Thursday, May 2, 2013

[Help Wordpress] Initialize Royal Slider on AJAX Pages


Hi, thanks for your response. I tried several variations to no avail.


$("#slideshow-mastercontainer").load("content_repo.html #con_SS2", function() {
           $('#con_SS2").royalSlider({
                 autoHeight: false,
                 arrowsNav: true,
                 loop: false,
                 keyboardNavEnabled: true,
                 controlsInside: false,
                 imageScaleMode: 'fill',
                 arrowsNavAutoHide: false,
                 autoScaleSlider: true,
                 controlNavigation: 'none',
                 navigateByClick: false,
                 startSlideId: 0,
                 transitionSpeed: 900,
                 autoPlay: false,
                 transitionType:'move',
                 easeInOut: 'easeInOutSine',
                 easeOut: 'easeInOutSine',
                 deeplinking: {
                       transitionType: 'fade',
                       enabled: true,
                       change: true,
                       prefix: 'slide-',
                 },
           });
});


.....And.....


$("#success").load("/not-here.php", function(response, status, xhr) {
if (status == "error") {


$("#slideshow-mastercontainer").load("content_repo.html #con_SS2", function(response, status, xhr) {
           if (status == "success") {
           $('#con_SS2").royalSlider({
                 autoHeight: false,
                 arrowsNav: true,
                 loop: false,
                 keyboardNavEnabled: true,
                 controlsInside: false,
                 imageScaleMode: 'fill',
                 arrowsNavAutoHide: false,
                 autoScaleSlider: true,
                 controlNavigation: 'none',
                 navigateByClick: false,
                 startSlideId: 0,
                 transitionSpeed: 900,
                 autoPlay: false,
                 transitionType:'move',
                 easeInOut: 'easeInOutSine',
                 easeOut: 'easeInOutSine',
                 deeplinking: {
                       transitionType: 'fade',
                       enabled: true,
                       change: true,
                       prefix: 'slide-',
                 },
           });
});
});



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post

[WP issuses] rohitmanglik on "[Plugin: WP Forum Server] Functions"
rohitmanglik on "[Plugin: WP Forum Server] Functions"
WordPress › Support » rohitmanglikwordpress.org/support/profile/rohitmanglik - Cachedrohit...
[Wordpress issuses] timethief on "Anuncio"
timethief on "Anuncio"
Time Thief Ep de Bitchy Boy en CD: compra y venta nuevos y de ...www.priceminister.es/offe...
[Wordpress issuses] darnelldibbles on "Pages"
darnelldibbles on "Pages"
Darnell Dibbles | WhitePageswww.whitepages.com/name/Darnell-DibblesThere are 5 people in t...
[Wordpress issuses] uqmaffle on "How do I put a Researcher ID badge onto my blog?"
uqmaffle on "How do I put a Researcher ID badge onto my blog?"