5 messages in com.googlegroups.google-gadgets-apiRe: IE and Flash... not working...| From | Sent On | Attachments |
|---|---|---|
| ChipChamp | 28 Oct 2007 15:14 | |
| abowman (Guru) | 28 Oct 2007 17:14 | |
| ChipChamp | 28 Oct 2007 19:31 | |
| abowman (Guru) | 28 Oct 2007 19:49 | |
| ChipChamp | 28 Oct 2007 20:22 |
| Subject: | Re: IE and Flash... not working...![]() |
|---|---|
| From: | ChipChamp (chip...@gmail.com) |
| Date: | 10/28/2007 08:22:39 PM |
| List: | com.googlegroups.google-gadgets-api |
Thanks! That fixed it! :D
On Oct 28, 7:49 pm, "abowman (Guru)" <abow...@gmail.com> wrote:
I wouldn't use the document.writeln.
Try this:
<?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Test"> <Require feature="flash"/> </ModulePrefs> <Content type="html"> <![CDATA[ <div id="wrapper"></div> <script type="text/javascript"> _IG_EmbedFlash("http://www.arcadelive.com/swf/airhockey2.swf", "wrapper", {wmode: "window", height: "200"}); </script> ]]> </Content> </Module>
On Oct 28, 10:31 pm, ChipChamp <chip...@gmail.com> wrote:
Thanks for the reply, but I don't think that's the problem because if I use embed tags with set height and width, it still doesn't work. :(
On Oct 28, 5:14 pm, "abowman (Guru)" <abow...@gmail.com> wrote:
There is an issue with using a relative height for flash in IE.
If you don't want to assign an absolute value for height, you can do something like what I do in my flash gadgets. I get the gadget height and assign that height value to the div that contains the swf when the gadget is loaded and whenever it is resized.
On Oct 28, 6:14 pm, ChipChamp <chip...@gmail.com> wrote:
Okay, I made a gadget... I always make gadgets using FireFox since that is the normal browser I use, and my gadget works fine in FireFox. Then I tested it in Opera... Yay! It worked. Then I tested it in IE... the flash just refuses to load!!! I'm gonna give you the exact code I used -- just not the flash file because I don't want it stolen, and it doesn't make a difference which file I use. I'm gonna use the air hockey flash file that I used in one of my older gadgets, that gadget works fine -- but in this gadget the flash won't load in IE (but does in every other browser I know of). Does anyone know why?
<?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Test"> <Require feature="flash"/> </ModulePrefs> <Content type="html"> <![CDATA[ <script type="text/javascript"> document.writeln('<div id="wrapper" align="center">'); _IG_EmbedFlash("http://www.arcadelive.com/swf/airhockey2.swf", "wrapper", {wmode: "window", height: "95%"}); document.writeln('</div>') </script> ]]> </Content> </Module>




