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.

CommentFileSizeAuthor
#9 greybox_hide.patch483 bytesmeba
#7 greybox.js.txt3.29 KBkyoju

Comments

russhull’s picture

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.

MetalDave’s picture

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.

russhull’s picture

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.

vkr11’s picture

Same problem. Subscribing. Looking for solution:

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

vkr11’s picture

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

russhull’s picture

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

kyoju’s picture

StatusFileSize
new3.29 KB

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.

escsco’s picture

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

meba’s picture

Status: Active » Needs review
StatusFileSize
new483 bytes

I cannot believe how long this has been in the queue.

A simple patch.

vpapadim’s picture

first I was super happy to find that module, then supper sad since that bug is a show stopper, and then supper happy again to find this solution!!!

thanks guys.