IE7 Problem

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

IE7 Problem

Post by deeessay »

Hi I know this is not php-related for the most part but I decided to post it here anyway as I you guys have helped me here before.

My problem is the SWF movie won't load in IE7 although it works fine in Firefox3. All I get is a white area that when you right-click on it, a message saying "movie not loaded" appears in the context menu. I am using PHP5 and IE7 has Flash Player 10 installed. I been trying to look for a solution for this problem for months now and I have started to feel this uncontrollable wrath for IE7.

anyways, here's the code:


Code: Select all

 
echo "<object type=\"application/x-shockwave-flash\" data=\"https:XXX.com/picture.php?image_id=$image_id\" width=\"800\" height=\"600\">";
echo "<param name=\"movie\" value=\"https:XXX.com/picture.php?image_id=$image_id\" />";
echo "<param value=transparent name=wmode />";
echo "</object>";
 

and here's picture.php

Code: Select all

 
$result = mysql_query("SELECT filename,filetype, data, width, height FROM tablename1 WHERE image_id = $image_id");
if (mysql_num_rows($result)) {
$row = mysql_fetch_object($result);
header("Content-type: $row->filetype");
echo $row->data;}
 
any help will be greatly appreciated. thanks!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: IE7 Problem

Post by pickle »

Rather than 4 different echo statements, use one & heredocs:

Code: Select all

echo <<<FLASH
<object>
...
</object>
FLASH;
This is a pretty good article about standards compliant flash: http://www.alistapart.com/articles/flashsatay
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: IE7 Problem

Post by JAB Creations »

Here is a Flash object element with alternative content that is valid and works in all versions of all browsers all the way back to IE4...

Code: Select all

<object data="example.swf" type="application/x-shockwave-flash"> <param name="movie" value="example.swf" /> <param name="loop" value="false" /> <param name="play" value="true" /> <param name="quality" value="high" /><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" style="height: 32px; width: 32px;" tabindex="3" title="Install Flash Plugin"><img alt="Install Flash Plugin" src="images/interface-plugin-flash.gif" style="height: 32px; width: 32px;" title="Install Flash Plugin" /></a></object>
I'm not sure if that is the issue though give it a try and let me us know how it goes please. :) =
Post Reply