hello everyone, i am a drupal starter, i created a website www.venussolutions.com i had a slideshow with floom effect of mootools. i am also intended to use views slide show, but slideshow doesnt turn up on front page, on troubleshooting i found error with external javascript i.e. floom slideshow

in firebug following error is marked up:
Error: $(".views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)", context) is null
Source File: http://venussolutions.com/sites/all/modules/views_slideshow/contrib/view...
Line: 12

the output of the front source is attached..
Any help will be appreciated.

CommentFileSizeAuthor
views error.JPG81.21 KBtanay_lakhani

Comments

redndahead’s picture

need to alias the $

tanay_lakhani’s picture

can you please elaborate? how to do this?

redndahead’s picture

It's something I need to do, but in the code you would wrap the entire js file in.

(function ($) {

})(jQuery);
cmstom’s picture

I had an issue with the Views Slideshow not showing Pager control AND also not cycling. The conflict was with the file

sites/all/themes/[theme]/js/jquery.js

When I deleted that file the Views Slideshow worked. The problem was that the jquery file also controlled the main navigation rollovers and other jquery functions in the website. So I needed that jquery.js file.

Resolution:
Editing the theme's info file to load the Views Slideshow .js files AFTER the jquery.js file I mentioned above. Here's what my new .info file shows:

scripts[] = js/jquery.js
scripts[] = ../../modules/views_slideshow/js/jquery.cycle.all.min.js
scripts[] = ../../modules/views_slideshow/contrib/views_slideshow_singleframe/views_slideshow.js
scripts[] = js/cufon-yui.js
...[more scripts]...

I first noticed the issue when I Viewed source on the page that was having the issue and noticed that js/jquery.js was NOT loading first, instead the Views Slideshow .js files were loading first. This led me to reorganize the .info file so that the js/jquery.js file is loaded first, THEN the Views Slideshow .js files.

Hope this helps!

tanay_lakhani’s picture

Status: Active » Postponed
redndahead’s picture

Status: Postponed » Fixed

A patch to fix this was committed.

tanay_lakhani’s picture

big thanx..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.