View Full Version : Viewing Video Content Called Dynamically Within IE7

09-24-2008, 04:25 PM
1) Script Title: Facebox

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm

3) Describe problem: Just when you think everything is working fine on a script, you do a final check in Internet Explorer and hit a wall. I know this script works in IE7 because the examples on the DynamicDrive site work fine. However when I use a custom field in Wordpress to pull some embed video code, everything works great in every browser except IE7. When I click on the link to execute Facebox the page jerks as it does just before a popup and the opening.gif just spins and hangs in the box without the video coming in (If I hold down the Ctrl key before I click the link, IE brings up the same page in a new tab). I am calling a script in Facebox within an inline <DIV> as follows:

<?php $key="theater";echo stripslashes (get_post_meta($post->ID, $key, true)); ?>

And $key is the name of the custom field in Wordpress.

The $key pulls this sample embed code from one of the posts (standard embed code from YouTube):

<object width="680" height="550"><param name="movie" value="http://www.youtube.com/v/QjJCIbC9sxA&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"><embed src="http://www.youtube.com/v/QjJCIbC9sxA&hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="opaque" width="680" height="550"></embed></object>

Again, all this works fine in all the other browsers but something about trying to bring a video up within IE seemed to get stuck (probably as some security patch that Microsoft has added in an update). Also the php script within Wordpress works fine otherwise. It's just when it's combined with bringing up a videoview within a javascript, some work in IE but most scripts seem to end up having some sort of issue in the process.

Any insights or guesses on what might solve this would be greatly appreciated.

09-24-2008, 04:56 PM
I also wanted to add that when I click on the link I get a IE error warning in the lower left hand corner of the page stating:

object doesn't support this property or method
line 137
char 9

When I went to see what was on that line in the facebox.js file, I found it was a blank line. This info probably won't help but I wanted to add to the post just in case.