0

I'm using Drupal 7 and Galleria 1.2.6 And have got fullscreen theme. My gallery working on Firefox. But when click fullscreen images not working on IE.

Problem line:

 this.setStyle(this.get('iefix'), {

Full that codes:

  if (Galleria.IE) {
            this.addElement('iefix');
            this.appendChild('container','iefix');  
            this.setStyle(this.get('iefix'), {
                zIndex:3,
                position:'absolute',
                backgroundColor: '#000',
                opacity:.4
            })
        }

Error log:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Wed, 9 May 2012 13:43:16 UTC


Message: Object doesn't support this property or method
Line: 39
Char: 13
Code: 0
URI: http://mysite.com/sites/all/libraries/galleria/themes/fullscreen/galleria.fullscreen.js

How can i solve this?

Karmacoma
  • 658
  • 1
  • 13
  • 37
  • What problem ? Show the error log. – Michael Laffargue May 09 '12 at 13:40
  • Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0) Timestamp: Wed, 9 May 2012 13:43:16 UTC Message: Object doesn't support this property or method Line: 39 Char: 13 Code: 0 URI: http://mysite.com/sites/all/libraries/galleria/themes/fullscreen/galleria.fullscreen.js – Karmacoma May 09 '12 at 13:43
  • So what is on line 39 of that js file? – Farray May 09 '12 at 13:45
  • this.setStyle(this.get('iefix'), { – Karmacoma May 09 '12 at 13:48

1 Answers1

1

It seems setStyle and IE8 are not really working well. There may be a solution there

Shortly it would be to replace the this.setStyle with Element.setStyle, but you may want to check the galleria forum to ensure you got the same version or ask them about this problem.

Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76
  • @user1213807 you may want to check functions before using them, so around the line `setStyle(this.get('iefix...` you may want to add `if (this.setStyle && this.get) {` but this may break the fix that was done for IE – Michael Laffargue May 09 '12 at 14:09
  • Are you sure you don't use a cached js ? Because the if should at least avoid the error. You may try putting an alert or removing the whole if (GALLERIA.IE) block to check that. – Michael Laffargue May 09 '12 at 14:35