Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Hide my flash in iframes

Hide my flash in iframes

Scheduled Pinned Locked Moved ASP.NET
adobe
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benams
    wrote on last edited by
    #1

    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

    N D 2 Replies Last reply
    0
    • B benams

      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

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B benams

        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

        D Offline
        D Offline
        Dennis E White
        wrote on last edited by
        #3

        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 css display property to none. 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 the iframe 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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups