Note that there are some explanatory texts on larger screens.

plurals
  1. POdisplay jquery prettyPhoto lightbox in parent from iframe
    primarykey
    data
    text
    <p>I know this issue has been discussed before but I can't seem to get it to work. I have a master html page with an iframe on that page. I am using jquery prettyphoto and I was wondering how I can get the light box to display in the parent window when I click on the link in the iframe?</p> <p>Please my code below:</p> <p>Master Page</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Master Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;iframe src="iframe.html" width="300" height="300px" frameborder="0"&gt;&lt;/iframe&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>iFrame Page</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;iframe&lt;/title&gt; &lt;style type="text/css" media="screen"&gt; @import url("assets/css/infotech-iframes.css"); @import url("assets/css/infotech-popup.css"); &lt;/style&gt; &lt;script src="assets/js/jquery.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt; &lt;script src="assets/js/jquery.popup.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href="assets/images/screenshots/campaign-setup-lg.png" rel="prettyPhoto[gallery]"&gt;&lt;img src="assets/images/screenshots/campaign-setup-sm.gif" /&gt;&lt;/a&gt; &lt;script type="text/javascript" charset="utf-8"&gt; $(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto(); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload