Shihyen / swfobject

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

Multiple SWFObjects in IE causes error #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put the line '<script type="text/javascript"
src="/swfobject.js"></script>' into a page more than once

What is the expected output? What do you see instead?
I expect everything to run fine. Instead, in IE, an error occurs.

What version of the product are you using? On what operating system?
This is the 2.1 release in IE 6 & 7 on Windows XP.

Please provide any additional information below.
Part of one of the projects I work on involves rendering multiple flash
files on a page. Sometimes there needs to be more than on a page, and for
technical reasons (I don't control or have access to some of the pages) I
don't always know if swfobject has been included in the page previously, so
I just throw it in another time. This works great in Firefox, Safari, and
Opera, but in IE it creates an error. This seems like it should be pretty
easy to fix. I've attached a test page that involves a more technical
discussion of what I believe the problem is and how to fix it.

Original issue reported on code.google.com by raven...@gmail.com on 19 Nov 2008 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
RE: Put the line '<script type="text/javascript"
src="/swfobject.js"></script>' into a page more than once

Well, you're not supposed to do this. Just read the documentation page or view 
the
examples and you'll figure out what to do:
- http://code.google.com/p/swfobject/wiki/documentation
- http://code.google.com/p/swfobject/wiki/test_suite

Original comment by bobbyvandersluis on 19 Nov 2008 at 1:21