Javascript error in IE8

jofje - June 9, 2009 - 18:43
Project:Lightbox2
Version:6.x-1.x-dev
Component:Javascript
Category:bug report
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

When loading my site using IE8 I get the following JS error:

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Message: Invalid property value.
Line: 184
Char: 5
Code: 0
URI: http://app.o-festivalen.com/dp6/sites/all/modules/lightbox2/js/lightbox....

I does not get any lightbox effects clicking on images.

In Firefox I don't get any error on page loading, and the lightbox effect works well on some images (but not with others - not sure if this problem is related to the JS-error - will do some more testing before I might file separate issue...)

By the way: Images i s handled using Image Assist together with Wysiwyg/TinyMCE (all latest dev versions).

#1

Juanzo - July 1, 2009 - 23:18

I have the same problem but on line 181. It works flawlessly at Firefox and Chrome. Yet, on IE8 it doesn't.

#2

Juanzo - July 1, 2009 - 23:19
Version:6.x-1.x-dev» 6.x-1.9

I have the same problem but on line 181. It works flawlessly at Firefox and Chrome. Yet, on IE8 it doesn't.

#3

zarouk - July 29, 2009 - 13:46

Hi all,

Same problem for me on IE8 on line 181.
Works fine on Firefox.

Best regards,

#4

Countzero - September 17, 2009 - 15:23
Version:6.x-1.9» 6.x-1.x-dev

Same problem with dev version and IE7, line 185 : 'invalid property value'.

This bug seems critical as it prevents at least some uses of the module with IE.

For example, the login functionality is totally broken : no popup and form displayed without styling in a normal window.

I also had to disable it on some pages because it prevented one custom script of mine to work.

#5

diederik_2mpact - September 18, 2009 - 13:31

subscribing

#6

Javier - September 20, 2009 - 11:24

Same problem here with dev version and IE7, lightbox is not working and I get the following error message:

Line:185
Character:5
'Invalid property value'

Hope someone can help.
Thanks in advance.

#7

malphas86 - October 29, 2009 - 10:35

I have the same problem for IE8 and IE6

Subscribing...

#8

mixman - November 1, 2009 - 16:08

I've tracked the problem down to the skin settings of lightbox2 - this is only an assumption, but I think that the default values for this section are invalid (empty) and jQuery is freaking out (undefined values). At least for IE7/8 of course (argh...)

Just go to /admin/settings/lightbox2 Advanced settings/ Skin settings and set the options:
- border size,
- lightbox color,
- font color
to some values (can't be empty).

#9

nilsel - November 6, 2009 - 11:21

Thanks Mixman! Had the same problems here, setting the skin border size and colors solved it right away, now the lightbox plays without js-errors in IE 6, 7 and 8 :) I'm using lightbox2-6.x-1.9.

#10

lnunesbr - November 13, 2009 - 02:38
Status:active» patch (to be ported)

As mixman has said, the options - border size, lightbox color and font color must be set in the admin area, if not checked, returns a js error in IE8.

I actually made some update in the "lightbox.js" to prevent that, so, it checks if the respective variables really exists:
Lightbox.borderSize
Lightbox.boxColor
Lightbox.fontColor

And checking that, if undefined variables, prevents to make an invalid js call.

version: lightbox2-6.x-1.9

thx
leandro nunes

AttachmentSize
patch-lightbox.js_.patch 832 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.