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

Anonymous’s picture

I am having the same issue. Did you ever find anything?

salihcenap’s picture

Same error here! Anybody?

NickDickinsonWilde’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I believe that is fixed, if anyone experiences that with 7.x-3.3+ please re-open.