Hi Bernard,

i really didn't think of setting width & height to zero in IE, as i thought that would scale the div itself down and therefore affect the overall layout. in my particular case your solution works though.

thank you!

David

Bernard Visscher wrote:
You could try a width and height of 0px and the overflow set to hidden.
I don't know if all browsers will accept 0px for the width or height,
therefor I made a simple js example:

<script language="javascript" type="text/javascript">
        function hideDiv(divId)
        {
                var d = document.getElementById(divId);
                if(document.all){
                        d.style.width = "0px";
                        d.style.height = "0px";
d.style.overflow = "hidden"; } else {
                        d.style.visibility = "hidden";
                }
        }
        hideDiv("testDiv");
</script>

Just place it just before the </body> tag.

Greetz,

Bernard
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens David Fischer
Verzonden: maandag 17 juli 2006 21:18
Aan: Flashcoders mailing list
Onderwerp: Re: [Flashcoders] call JS-Method from SWF in hidden <div> on IE

Hi Kevin,

after several test i can confirm your previously mentioned behaviour, but haven't found a workaround though.

Thanks for your information!

David





Kevin Newman wrote:
In my experience with trying to work out a magic fix for the eolas patent (http://www.unfocus.com/projects/patentMagic/), I have found that in IE, with swfs at least (but possibly all objects)
objects that
are set with display: none, do not even load in the
background, never
mind execute javascript.

Kevin N.


David Fischer wrote:
Hi,

turns out that a swf in a hidden <div> won't execute any Javascript-Methods in Internet Explorer. it kinda seems logical in terms of "if anything is hidden,
i don't care".
this works with firefox (mac/win), opera(mac/win), safari though.
Can anyone confirm this behaviour ?

Thanks,

David

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to