CameronHStewart / jquery-swip

Automatically exported from code.google.com/p/jquery-swip
0 stars 0 forks source link

closing IFrame windowSource #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the iframe windowSource option and have created a 'close' link on 
the page that is opened.What steps will reproduce the problem?

<A class="absoluteIframeDOMWindow" href="contact-lightbox1.php">Open 
Window</A></span>
<script type="text/javascript"> 
$('.absoluteIframeDOMWindow').openDOMWindow({ 
height:640, 
width:585, 
positionType:'centered',
eventType:'click', 
windowBGColor:'#202020',
windowSource:'iframe', 
windowPadding:5, 
loader:1, 
loaderImagePath:'animationProcessing.gif', 
loaderHeight:16, 
loaderWidth:17,
}); 
$('.closeDOMWindow').closeDOMWindow({
eventType:'click'
});
</script>

Here is the code on the page that is opened:

 <p><a href="#" class="closeDOMWindow">Close</a></p>

This seems to work fine for the ajax and inline methods but I have a page that 
has a form with a php mailer and it renders better with the iframe windowSource 
type so it's preferable to use that method. Does anyone have suggestions on 
what is needed for this to work or had any similar issue? 

Original issue reported on code.google.com by zab...@gmail.com on 22 Jul 2010 at 1:25

GoogleCodeExporter commented 8 years ago
I have the same problem!!!

Original comment by jonasmor...@gmail.com on 26 Mar 2011 at 12:28