Jump to:

7940 Posts in 1543 Topics by 946 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1086 Views
  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    ImageGallery not working properly in IE8 Link to this post

    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 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?

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery not working properly in IE8 Link to this post

    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?

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: ImageGallery not working properly in IE8 Link to this post

    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

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: ImageGallery not working properly in IE8 Link to this post

    That fixed the problem!
    Brilliant! Thank you!

    1086 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.