flash reappears when scrolling

drasgardian - January 28, 2009 - 00:54
Project:Greybox
Version:6.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I encountered an odd problem. I was using greybox to load a page that had some flash within it, it displayed fine and when I clicked out it all disappeared again. When I later scrolled down the page though, the flash suddenly reappeared and I couldn't get rid of it.

I'm not sure if what I encountered was browser specific, but I was using firefox 3.0.5 under Ubuntu.

I fixed the problem by adding $("#GB_window iframe").remove(); to the GB_hide function in gryebox.js.

- drasgardian.

#1

russhull - February 3, 2009 - 20:10
Priority:normal» critical

I'm having the same issue, but adding that line of code to the GB_hide function of greybox.js didn't fix it.

Any ideas? This renders the module completely useless for me.

#2

MetalDave - February 10, 2009 - 11:15

I've got the same problem, if i add $("#GB_window iframe").remove(); to the GB_hide function in gryebox.js i fix the problem of flash element, but when i close greybox window and scroll down the page there is a "ghost" of greybox page...I don't know how to fix this.

#3

russhull - February 27, 2009 - 23:31

I still haven't seen a solution to this. This is the one thing keeping me from using greybox as a really great and convenient in-page popup window.

I do notice that, when the flash reappears once you start scrolling, a simple refresh of the page makes it go away. Does anybody know a way to program a function that causes the page you're on to refresh when the greybox is closed? That would be a quick fix to this problem.

#4

vkr11 - March 5, 2009 - 01:00

Same problem. Subscribing. Looking for solution:

Thanks,
Victor
Better way to Search Drupal.org - http://drupalsearch.org

#5

vkr11 - March 5, 2009 - 01:22

Something that seems to have solved the problem is by un-checking the option "Slide animation" at admin/settings/greybox .
I am using this with 5.x but should be the same.

Thanks,
Victor
Better way to Search Drupal.org - http://drupalsearch.org

#6

russhull - March 25, 2009 - 20:42

Negative - there is no 'slide animation' setting in the current version of greybox. any idea how to disable this in the js file?

#7

kyoju - April 2, 2009 - 15:29

Thanks vkr11 for the sliding animation hint.

Changed:

function GB_hide() {
  $("#GB_window").animate({ height: 0, width: 0, opacity: 0 }, 350);
  $("#GB_overlay").fadeOut(350, function() {
    $('body').css('overflow', 'auto');
  });
}

to

function GB_hide() {
  $("#GB_window,#GB_overlay").hide();
  $('body').css('overflow', 'auto');
}

Everything seems to work fine now... I've attached the fixed js file below. Tell me if it works for you guys.

AttachmentSize
greybox.js.txt 3.29 KB

#8

escsco - April 30, 2009 - 04:48

Editing GB_hide() per kyoju did the trick for me on Opera 9.64 on Mac OSX 10.5.6 machine.

 
 

Drupal is a registered trademark of Dries Buytaert.