marconiduarte / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Adding the call to swfobject.js causes Operation Aborted in IE6 #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Adding the call to swfobject.js (v2.1) in the <head> causes IE to
display the dialog box reporting: "Internet Explorer cannot open the
Internet site http://www.screamindemongolf.com/ Operation aborted"

If I comment out the call to the swfobject.js, the page displays but
obviously without the flash navigation.

What is the expected output? What do you see instead?
I expect to see the flash navigation but I see the error message: "Internet
Explorer cannot open the Internet site http://www.screamindemongolf.com/
Operation aborted"

What version of the product are you using? On what operating system?
Version 2.1 on WinXP SP3

Please provide any additional information below.
This problem started recently. My only guess is that an automatic update by
IE and/or XP has caused the issue.

Original issue reported on code.google.com by sflar...@gmail.com on 5 Mar 2009 at 10:04

Attachments:

GoogleCodeExporter commented 9 years ago
I had the same bug with another website, and I found the solution on a forum
http://forum.joomla.fr/showthread.php?p=388090 . Just add "<!--[if
IE]></base><![endif]-->" after the <base> tag (the bug is relative to the 
support of
this tag with IE6)

Original comment by gregoire...@smile.fr on 6 Mar 2009 at 8:57

GoogleCodeExporter commented 9 years ago
Please read our FAQ Q4: http://code.google.com/p/swfobject/wiki/faq

Original comment by bobbyvandersluis on 6 Mar 2009 at 10:25

GoogleCodeExporter commented 9 years ago
Thank you all. I apologize for not doing a proper search at this site prior to
posting the bug. I realized today I had search only in open issues, not all 
issues
where this problem had been previously discussed, solved and closed.

The issue is now resolved at my site by adding </base> to close the <base> 
element
rather than correctly self closing the element.

Rather than using the conditional comment as suggested above, I opted for a 
server
side PHP script to recognize the user agent and write the incorrect <base> code 
only
for IE6. This also avoids a minor problem with the conditional comment 
solution. Just
adding "<!--[if IE6]></base><![endif]-->" will cause IE6 to render the <base> 
element
as such: <base href="someURL" /></base> rather than <base 
href="someURL"></base>,
with the prior still self closing and then closing again with </base>.

To determine IE6 via PHP user agent is used: 
$isIE6 = (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')>0) ? true : false ;
$baseHTML = ($isIE6) ? '<base href="'.$baseURL.'"></base>' : '<base 
href="'.$baseURL
.'" />';

Again, thank you for the quick answer!

Cheers,
TJ

Original comment by sflar...@gmail.com on 6 Mar 2009 at 2:43