fabriciocs / swfobject

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

Problem with google maps on IE #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a page with swfobject (loading option 2.. scripting)
2. Have on the same page a Google Map component
3. Run the page on IE

What is the expected output? What do you see instead?

It was expected that both the google maps and the flash component would
appear. 
On Firefox, it does. But on IE it doesn't.

What version of the product are you using? On what operating system?

SWFObject v2.0 rc2

Please provide any additional information below.

Original issue reported on code.google.com by tiago.ca...@gmail.com on 10 Mar 2008 at 12:41

GoogleCodeExporter commented 9 years ago
Three questions:
1. What makes you think this is a SWFObject related bug (and not a web 
authoring or
Google maps related issue)?
2. Why didn't you use the latest available library version?
3. Do you have an online test page available?

Original comment by bobbyvandersluis on 10 Mar 2008 at 12:54

GoogleCodeExporter commented 9 years ago
Hi,

3.Here is an Online example: 
http://www.masterfoot.pt/page/localizacao

2.I've already tried the latest version (on localhost) an the result is the 
same.

1.The fact that there isn't any javascript error, that google maps works, that 
on
firefox it all works, and that the swfobject is used on the layout only and on 
other
pages that don't have google maps, it works fine.
It lead me to think that the problem is restricted to the interaction between 
google
maps and swfobject. (because google maps is the only different thing on this 
page
regarding the others).

Any help ? 

Original comment by tiago.ca...@gmail.com on 10 Mar 2008 at 1:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok, problem solved :D

I've putted the script just before </body> instead of the recommended </header> 
and
it works fine now.

Probably google maps scripting messes something up on the DOM scope.

Either way, maybe this should be looked more deeply, as google maps isn't going 
to
change that soon (maybe) and it should work fine with this GREAT library.

Thanks.

Original comment by tiago.ca...@gmail.com on 10 Mar 2008 at 2:10

GoogleCodeExporter commented 9 years ago
Cool, great you found a solution :-)

SWFObject 2.0 is built in such way that it shouldn't mess with any other 
JavaScript
functionality on a page, e.g. everything is name-spaced, onload events are not
overwritten, no use of constructs like Object.prototype, no excessive use of 
timers.
Unfortunately this isn't always the case the other way around, so sometimes you 
do
need to be a bit creative...

Original comment by bobbyvandersluis on 10 Mar 2008 at 2:40