7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » ImageGallery not working properly in IE8
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 870 Views |
-
ImageGallery not working properly in IE8

15 July 2010 at 11:10pm
Hi
I got the ImageGallery module installed and working perfectly ...in 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 UTCMessage: 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=1251465430Any ideas on how to get it working?
-
Re: ImageGallery not working properly in IE8

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?
-
Re: ImageGallery not working properly in IE8

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
-
Re: ImageGallery not working properly in IE8

27 July 2010 at 10:17am
That fixed the problem!
Brilliant! Thank you!
| 870 Views | ||
|
Page:
1
|
Go to Top |


