logo

Close prettyPhoto window from an iframe

Date: 2011-06-03

Closing around the forums has been discussed on how to close prettyPhoto modal from within an iframe. I've tried many of solutions posted there without success.
Here's one solutions on how to do it. To close prettyPhoto from an iframe just call the following:

Code:


<script type="text/javascript">
parent.eval('$.prettyPhoto.close()');
</script>

Xiao

2011-06-07 17:27:52

Works perfect! Just what I'm looking for, thanks!


Christian

2011-07-11 14:02:21

thanks, this helped me a lot...

beatiful work.


I went to tons of liI went to tons of links beofre this, what was I thinking?

2011-07-17 21:51:39

I went to tons of links beofre this, what was I thinking?


ubuntudog.com © 2017 | About | Sitemap | Contact