Ie7 Security Problem

We currently have a site at www.cutekittenvideos.com which acts as an aggregator for You Tube videos, the visitor clicks on a picture and a You Tube video is displayed. We are developing a new version of this page which can be seen at www.cutekittenvideos.com/dev – in this page the pictures/links are in a scrollling div and clicking on one displays the linked You Tube video in an iFrame on the left hand side of the page. This works by using a Javascript onClick event to make the src of the iFrame (id=”viewer”) a page called redirect.php (after passing it the Your Tube video id as “video”).

The source for the page redirect.php is…

<?php
$val = $_GET[‘video’];
$redirect= “http://www.youtube.com/v/” . $val . “&autoplay=1”;
header (“Location: $redirect”);
exit();
?>

This works fine in all browsers except IE7 where if you click a picture/link www.cutekittenvideos.com/dev/index.php you get a dialog box “File Download – Security Warning” with the following text…

Do you want to open or save this file?
Name:
Type: Shockwave Flash Object, 1.03 Kb
From: www.youtube.com

I suspect the problem is a new default security setting in IE7. We want the page to work just the same in all browsers including IE7.

Can you solve this problem please!

Leave a Reply

Your email address will not be published. Required fields are marked *