Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

ImageGallery not working properly in IE8

Go to End

4 Posts   1450 Views


Community Member, 63 Posts

15 July 2010 at 11:10pm


I got the ImageGallery module installed and working perfectly firefox ... however in IE8 it's not loading properly, you can click on the gallery, see the albums fine, but when you click on an album the images in the album don't appear. It has the loading icon showing, and you can scroll over where the images should be and get the background colour defined in a:hover, but nothing happens.

With some fiddling with IE's settings I managed to get it to produce a script error message which says:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729; .NET4.0C)
Timestamp: Thu, 15 Jul 2010 11:00:22 UTC

Message: Object doesn't support this property or method
Line: 3
Char: 2
Code: 0
URI: http://localhost/Ethereal/silverstripe-v2.3.4/image_gallery/javascript/imagegallery_init.js?m=1251465430

Any ideas on how to get it working?


Forum Moderator, 4102 Posts

16 July 2010 at 2:26am

imagegallery_init.js is a really simple script... I think it's only 4 or 5 lines long. Can you do some trial and error and let me know the line that is causing problems?


Community Member, 117 Posts

25 July 2010 at 1:05pm

I've been getting this with IE7 as well.

Issue seems to be that IE gets confused as gallery variable is also uses as an ID elsewhere. I changed mine to:

// We'll avoid relying on any specific JS framework to keep this open.
window.onload = function() {
	if ( opengallery = document.getElementById('gallery-list'))
		opengallery.className = "gallery-layout loaded";

and seems to work ok now


Community Member, 63 Posts

27 July 2010 at 10:17am

That fixed the problem!
Brilliant! Thank you!