Permalink
Browse files

Docs (popup): added note to video iframe example about stopping a vid…

…eo when the popup is closed. Fixes #4897.
  • Loading branch information...
1 parent 7042a2e commit 7c67a2fd43656a79b484a4d0991b44be2571706b @jaspermdegroot jaspermdegroot committed Aug 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 docs/pages/popup/popup-iframes.html
@@ -118,6 +118,7 @@
});
</code></pre>
+ <p>Note that the video will still be playing in the iframe when the popup is closed. If available you can use the 3rd party API to stop the video on the <code>popupafterclose</code> event. Another way is to create the iframe when the popup is opened and destroy it when the popup is closed, but this would drop support for browsers that have JavaScript disabled.</p>
<h2>Map example</h2>
<p>In the second example, an iframe is used to display <strong>Google Maps API</strong>. Using an iframe prevents issues with the controls of the map.</p>

0 comments on commit 7c67a2f

Please sign in to comment.