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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Lightwindow not working properly in IE!


Go to End


11 Posts   11294 Views

Avatar
Fading

Community Member, 15 Posts

10 January 2009 at 2:55pm

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,

Avatar
Fading

Community Member, 15 Posts

13 January 2009 at 4:46am

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

Avatar
warwick

Community Member, 13 Posts

31 January 2009 at 9:59pm

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.

Avatar
Nivanka

Community Member, 400 Posts

2 February 2009 at 12:32am

check whether your browser returns any javascript errors

Avatar
sjbmaine

Community Member, 17 Posts

3 February 2009 at 1:18pm

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.

Avatar
guillearg

Community Member, 1 Post

3 March 2009 at 12:05pm

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

Avatar
jimmijammit

Community Member, 1 Post

28 March 2009 at 2:30pm

Thanks guillearg! This fix worked like a charm!!

Avatar
Oyster

Community Member, 17 Posts

31 August 2009 at 1:18am

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?

Go to Top