Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am using the following code for my navigation links. However, loading content that have views slideshow causes the following js error:
Drupal.settings.viewsSlideshowPagerFields is undefined
http://localhost/sites/all/modules/views_slideshow/js/views_slideshow.js...
Line 258
Line 258 is this,
if (Drupal.settings.viewsSlideshowPagerFields[uniqueID][location].activatePauseOnHover) {
The result is that the whole view is displayed regardless of the paging values I have set.
Here's how i do it:
jQuery('#menu li a').unbind('click').click(function(){
var href = jQuery(this).attr('href');
var toLoad = href+' #content';
//jQuery('#content').load(toLoad);
jQuery.ajax({
url: href,
dataType: "html",
success: function(data){
jQuery('#content').html(jQuery(data).find('#content'));
Drupal.attachBehaviors();
}
});
return false;
});
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI am having the same issue. Did you ever find anything?
Comment #2
salihcenap CreditAttribution: salihcenap commentedSame error here! Anybody?
Comment #3
NickDickinsonWildeI believe that is fixed, if anyone experiences that with 7.x-3.3+ please re-open.