Web Analytics Made Easy -
StatCounter Any way to display a message when Flash is not found on the iPad? - CodingForum

Announcement

Collapse
No announcement yet.

Any way to display a message when Flash is not found on the iPad?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any way to display a message when Flash is not found on the iPad?

    Apple is obviously rejecting Flash to protect it's 'App' revenue. I've been on Android phones that run Flash and display all my content perfectly smooth. It can be quite frustrating how they are trying to bury it when I still have yet to see HTML5 replicate the type of interactive content Flash is capable of producing.

    Is there any way to display a message on the iPad when the Flash player is not found?
    I'd like it to says something along the lines of:
    "Unfortunately the Apple iPad does not support the Flash player because their business interests do not want it taking away from their App revenue.
    Did you know that the Dell Streak, HTC Flyer, Blackberry Playbook, Motorola Xoom, Samsung Galaxy Tab, Toshiba Thrive, and HP Touchpad all support the Flash player?"



    My HTML code looks something like this...

    <html>
    <head>
    <title>My Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#ECECEC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <body onresize="setFlashSize()">
    <div id="flashid" style="width:100%; height:100%;">
    <script type="text/javascript" language="JavaScript">


    function setFlashSize(){
    var viewportheight = document.body.clientHeight;
    var viewportwidth = document.body.clientWidth;
    var mydiv = document.getElementById("flashid");
    var styleheight = parseInt(mydiv.style.height);
    var stylewidth = parseInt(mydiv.style.width);

    if (viewportwidth<880){
    document.getElementById("flashid").style.width = 880+"px"; }
    else {
    document.getElementById("flashid").style.width = 100+"%";}

    if (viewportheight<760){
    document.getElementById("flashid").style.height = 760+"px"; }
    else {
    document.getElementById("flashid").style.height = 100+"%";}

    }



    setFlashSize();
    document.write('<object data="index1.swf" width="100%" height="100%" type="application/x-shockwave-flash">');
    document.write('<param name="movie" value="index1.swf" />');
    document.write('<param name="allowScriptAccess" value="always" />');

    document.write('</object>');
    </script>
    <noscript>Javascript must be enabled to view Flash movie</noscript>
    </div>
    </body>
    </html>

  • #2
    Ipad vs Flash

    Try to refer to this post which talks to How to display temporary popup message on iPhone/iPad/iOS

    This is the link
    Don't forget to mark solution providing post as "Answered".
    It helps others to find correct solutions!

    Comment


    • #3
      I'd remove the part about the now defunct HP Touchpad...lol
      Teed

      Comment


      • #4
        Thanks dotnetmind... but I'm still unclear how to make this pop up ONLY when the flash player is not found.

        teedoff: lots of people have the HP touchpad now haha

        Comment


        • #5
          Solved!
          turns out I could just apply
          document.write('<center><IMG SRC="alert.jpg" WIDTH="585" HEIGHT="195"></center>');
          between my object tags at the bottom of my html.

          If the plugin does not initialize it brings up the alert.jpg
          Last edited by flashdev01; Aug 26, 2011, 03:05 AM.

          Comment

          Working...
          X