With the installation of the latest 6.x-2.0 slider module, we've started to experience issues with our JQuery code. Further analysis revealed a Javascript error:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; fdnet; .NET CLR 1.1.4322; fdnet; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Timestamp: Sun, 18 Jul 2010 05:59:40 UTC

Message: Object doesn't support this property or method
Line: 17
Char: 5
Code: 0
URI: /sites/default/modules/views_nivo_slider/js/views_nivo_slider.js?2

All subsequent Javascript execution would stop at this point. We ended up downgrading back to version 1.3 for now, and everything is working once again -- just had to reselect the image field in view settings for the slider as usual.

Please advise, and keep up the good work. Thank you in advance!

Comments

ty.noryan’s picture

Title: Javascript error code with views_nivo_slider 6.x-2.0 & up » Javascript error with views_nivo_slider 6.x-2.0 & up
pedrofaria’s picture

Hello keenfx,

Verify if you are using the correct version of jQuery Update module... You must use alpha version...

If yes, i will try to reproduce it...

thanks!

joaofelipe1395’s picture

I had an issue with jQuery too, even after installing jQuery Update alpha. I don't know if it's the same as yours, but a simple solution that worked for me was to add the following code to my page.tpl.php, after <?php print $scripts; ?>:

<script>
$(window).load(function() {
	$('#slider').nivoSlider();
});
</script>
pedrofaria’s picture

Drupal work with behaviors...

http://drupal.org/node/205296

joaofelipe1395’s picture

So I guess the code isn't suitable? I got it from the Nivo Slider homepage. Without it, the slices weren't showing up right.

I took it off now, and it seems to be ok. My mistake, sorry.

pedrofaria’s picture

Assigned: Unassigned » pedrofaria
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Hello, did you find the answer? I have the same problem.