troubleshooting Question

Loading Iframe content on thickbox Popup

Avatar of Sam Cohen
Sam CohenFlag for United States of America asked on
JavaScriptCSSjQuery
9 Comments1 Solution2023 ViewsLast Modified:
I am using thickbox to pop open my content. here is my code:

//hidden until popup happens
<div id="youtubeplayer-20" style="display:none;">
<iframe src="http://player.vimeo.com/video/40027856?autoplay=1" width="550" height="309" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>


<a href="#TB_inline?height=309&width=550&inlineId=youtubeplayer-20" class="thickbox" title="Video Introduction"><br />
<img src="video-image1.png" alt="" title="intro" width="280" height="159" class="alignleft size-full wp-image-11546" /></a>

Because I have the vimeo video set to autoplay (autoplay=1), when you page loads, it plays the video in the background which means the content is being load before the popup is launch.

Is there anyway to only load the iframe content in the popup to load after it has pop up?
ASKER CERTIFIED SOLUTION
Sam Cohen
Consultant to Digital/Developer @ Samjco.com

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros