Hide my flash in iframes
-
Hi, I have a flash map in my site, which cannot be displayed inside iframes in other domains. So what I wnat to do, is to check the domain name when the page is loaded and hide the flash map if it's other than my domain. I have heared that there is a commonly used code for hiding flash in Iphones, that can be useful for me, but I couldn't find it, so maybe sompne can copy the code for me. Thanks, Ben
-
Hi, I have a flash map in my site, which cannot be displayed inside iframes in other domains. So what I wnat to do, is to check the domain name when the page is loaded and hide the flash map if it's other than my domain. I have heared that there is a commonly used code for hiding flash in Iphones, that can be useful for me, but I couldn't find it, so maybe sompne can copy the code for me. Thanks, Ben
benams wrote:
there is a commonly used code for hiding flash in Iphones
Its called not being supported. Flash won't even load on an iPhone, iPod or iPad.
No comment
-
Hi, I have a flash map in my site, which cannot be displayed inside iframes in other domains. So what I wnat to do, is to check the domain name when the page is loaded and hide the flash map if it's other than my domain. I have heared that there is a commonly used code for hiding flash in Iphones, that can be useful for me, but I couldn't find it, so maybe sompne can copy the code for me. Thanks, Ben
two articles on browser detection: http://peter.michaux.ca/articles/feature-detection-state-of-the-art-browser-scripting[^] http://jibbering.com/faq/notes/detect-browser/[^] my recommendation though is to use a javascript framework which will take on most of the work for you. once you have determined your browser you can simply hide the
div
by setting its cssdisplay
property tonone
. just a note though you might still run into problems with the flash trying to run? I am not a huge fan of flash so I have never tried this route before. my recommendation would be to add theiframe
to your document only after you have determined that the browser supports it.as if the facebook, twitter and message boards weren't enough - blogged