Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Lightwindow not working properly in IE!

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 8169 Views
  • Fading
    Avatar
    Community Member
    15 Posts

    Lightwindow not working properly in IE! Link to this post

    I am not sure if this has been posted before, so I will ask anyways.

    Lightwindow works fine in Firefox, but has problems in IE. When browsing through the images some open fine and others open small and narrow and the image will be really tiny, Kind of weird. It is not every image. Am I missing something that will halp this work properly in IE?

    Thank you,

  • Fading
    Avatar
    Community Member
    15 Posts

    Re: Lightwindow not working properly in IE! Link to this post

    Is there anyone who has a solution to this? I really need to get this issue solved. Thank you

  • warwick
    Avatar
    Community Member
    13 Posts

    Re: Lightwindow not working properly in IE! Link to this post

    I cant give you an answer sorry - but I can tell you the pattern. The first time you load any image it seems to fail to get the image size in-time so the window opens up the wrong size

    The second time you open an image (any image already in your browsers cache) It works correctly because it already knows the image size from last time.

    Ive tried updating to latest daily builds for flicker and YouTube galleries but this or something I did has stopped my light windows working at all.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Lightwindow not working properly in IE! Link to this post

    check whether your browser returns any javascript errors

  • sjbmaine
    Avatar
    Community Member
    17 Posts

    Re: Lightwindow not working properly in IE! Link to this post

    I'm experiencing this as well. I receive an error message that reads:

    Line: 1597
    Char: 9
    Error: Invalid argument
    Code: 0

    Unfortunately I do not understand the code enough to know how to fix this.

  • guillearg
    Avatar
    Community Member
    1 Post

    Re: Lightwindow not working properly in IE! Link to this post

    I had the same problem, and after doing some research found this:
    http://www.trilodge.de/blog/2007/11/04/lightwindow-ie-fix/

    The page is in german (looks like), it tells you to replace a line in the lightwindow.js file

    This part of the code:

    $(’lightwindow_image_’+i).setStyle({
    height: ‘100%’
    });

    With this one:
    $(’lightwindow_image_’+i).setStyle({
    height: ‘100%’, width: ‘100%’
    });

    It says its in line 1231, but I found it in line 1244. After making that change started working for me on IE. Hope it helps

    Guille

  • jimmijammit
    Avatar
    Community Member
    1 Post

    Re: Lightwindow not working properly in IE! Link to this post

    Thanks guillearg! This fix worked like a charm!!

  • Oyster
    Avatar
    Community Member
    17 Posts

    Re: Lightwindow not working properly in IE! Link to this post

    I am having the same problems with IE (7.0) and Lightbox as described over. Guilleard's fix doesn't work here. I'm running SS 2.3.2 and Flickrservice 0.3-module.

    Any one have a clue?

    8169 Views
Page: 1 2
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.