Active
Project:
Thickbox
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2009 at 20:23 UTC
Updated:
15 Oct 2010 at 05:06 UTC
Is there a way to refresh parent page when the Thickbox is closed?
I am using iframe by appending the following to the link URL
&TB_iframe=true&height=500&width=750
Using this iframe, I ensure that the thickbox does not go away until user explicitly clicks on the "close" of thickbox.
After the thickbox is closed by the user, I want the parent page which has the thickbox link to be refreshed.
Thanks for any suggestions/ideas/pointers to how I can get this done.
Comments
Comment #1
frjo commentedPlease test the new Colorbox module and see it that works better.
http://drupal.org/project/colorbox
The Colorbox plugin has a cbox_closed event hook that should be able to refresh your page. You will need to write some custom JavaScript. See the documentation at http://colorpowered.com/colorbox/.
I have ported all Thickbox features to Colorbox so it should work as a drop in replacement.
When Colorbox has a stable release I will start actively recommend people to switch/upgrade from Thickbox to Colorbox. I'm the maintainer of Thickbox and a co-maintainer of Colorbox.