Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » ImageGallery thumbnail's don't load in IE 6-8

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1659 Views
  • okotoker
    Avatar
    Community Member
    41 Posts

    ImageGallery thumbnail's don't load in IE 6-8 Link to this post

    The gallery works and function in all other browsers. I get a error in ie that says:

    Line: 3
    Char: 2
    Error: Object doesn't support this property or method
    Code: 0
    URL: http://65.60.53.10/~artfulli/image_gallery/javascript/imagegallery_init?m=1251487030

    You can see the page here: http://65.60.53.10/~artfulli/furniture/album/living-room-2

  • okotoker
    Avatar
    Community Member
    41 Posts

    Re: ImageGallery thumbnail's don't load in IE 6-8 Link to this post

    Solved it:

    There must be a conflict somewhere with the variable name used in the "imagegallery_init.js" with something else being used elsewhere. I just changed gallery to mygallery and everything snapped into place.

    Oddly, it was just IE throwing the error here as firebug showed no problems.

  • UncleCheese
    Avatar
    4085 Posts

    Re: ImageGallery thumbnail's don't load in IE 6-8 Link to this post

    Yeah, I was just looking at that. It's kind of weird that function doesn't use jQuery. I can see what I was thinking, making it framework-independent, but since so many of the plugins are jQuery based anyway, maybe I should just require it. That way, naming collisions like that won't happen.

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: ImageGallery thumbnail's don't load in IE 6-8 Link to this post

    "I just changed gallery to mygallery "

    I also have this issue when you say you changed it, what did you change? the module folder name or something else?

    thanks!

    EDIT SOLVED

    Changed it in: imagegallery_init.js

  • trumps
    Avatar
    Community Member
    1 Post

    Re: ImageGallery thumbnail's don't load in IE 6-8 Link to this post

    I have similar problem with Mozila, where the thumbnails show and blank placeholder (even if the image chosen has a thumbnail in the add image page)

    I have read in other forums that this could be a privilege problem. Tried changing privileges with no improvement
    This thread suggests changing "gallery" to Mygallery"

    Please advise which part of the below text requires changing.

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

    1659 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.