DMXzone Lightbox Support Product Page

refresh opener page

Asked 28 Mar 2011 20:05:19
2
have this question
28 Mar 2011 20:05:19 Giancarlo Barba posted:
Hi
How i can refresh the opener page on close the lightbox?
thanks

Replies

Replied 13 Apr 2011 20:13:51
13 Apr 2011 20:13:51 Joe Holt replied:
I need to do the same thing. I had a closer page set up in Advanced layer popup that called the parent window page. It worked great there, but not in Lightbox. Anyone?
Replied 13 Apr 2011 21:50:39
13 Apr 2011 21:50:39 Joe Holt replied:
This (from another post) works. Just change the onclick to a body onload:


You can use a simple js function to set the link to be opened in parent page:

view plaincopy to clipboardprint?
<script type="text/javascript">
function OpenInParent(url){
parent.parent.document.location = url;
}
</script>


with a link set as follows:

view plaincopy to clipboardprint?
<a href="javascript:void(0);" onclick="OpenInParent('desiredPage.html')">here</a>
Replied 14 Apr 2011 16:09:38
14 Apr 2011 16:09:38 Giancarlo Barba replied:
Thank you Joe i send you a private reply.
Maybe i set my question in bad english. My problem is when i close lightbox from close button or from overlay. In my case i have a list of products from a table on db. I create one page where i display all result and for each item i have a button that open a lightbox and user can upload a fotogallery relative each product. When i close my lightbox (fotogallery) i need a refresh so the alternative image will be changed with one of fotogallery. (fotogallery images are stored in another related table on db).

Reply to this topic