louistruong9 / jquery-swip

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

Cannot create custom close button for AJAX modal window #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Link on index page <a href="/videoContent.php?video=5" title="PLAY">PLAY 
VIDEO</a>
2. Create videoContent.php page with the relevant content
3. Add jQuery to index
<script type="text/javascript"> 
$('.video a').openDOMWindow({ 
    eventType:'click',
    anchoredClassName:'videoWindow',
    borderSize:0,
    modal:1,
    overlayOpacity:'99',
    windowBGColor:null, 
    windowSource:'ajax', 
    windowHTTPType:'get',
    width:800,
    height:360
}); 
$('.video-close').closeDOMWindow({ anchoredClassName:'videoWindow', 
eventType:'click' });
</script>

What is the expected output? What do you see instead?
The window to close but nothing happens. Of course this is only an issue when I 
used modal mode and a custom close button. My mind tells me if the button is 
inside the videoContent.php page then the jQuery wont interact with the element 
but I thought that was what the 'anchoredClassName' was for.

What version of the product are you using? On what operating system?
jquery.DOMWindow.js with jquery-1.8.2.min.js
Mac OS X 10.7.5

Please provide any additional information below.

Original issue reported on code.google.com by colinag...@gmail.com on 5 Oct 2012 at 9:20

GoogleCodeExporter commented 8 years ago
I think I might have to use fancy box. Thanks

Original comment by colinag...@gmail.com on 8 Oct 2012 at 9:13