4

We generate html file to display swf on browsers. Following is our html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0021)http://www.domain_name.com -->
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Keywords" content="xxxxx">
    <meta name="Description" content="">
    <title>test</title> // Title Of The HTML
    <link rel="image_src" href="edge05_thumb.png"> 
    <link rel="viewlet" href="edge05.swf"> // SWF 
    <script language="javascript" type="text/javascript">
        <!--
            document.onhelp=new Function("return false");
            window.onhelp=new Function("return false");
        // -->
    </script>
...
</html>

This code works on all other browsers, but on Edge it shows white screen. From my analysis I found that whenever I remove the comment on the second line (saved from url=(0021)http://www.domain_name.com) it works fine.

I tried adding the comment in html but it didn't work.

Sampson
  • 265,109
  • 74
  • 539
  • 565
Pradnyarani
  • 302
  • 1
  • 8
  • Could you provide a reduced HTML file that repros the issue you're seeing in Edge? – Sampson Nov 09 '15 at 17:23
  • Here is my code sample,I am seeing the issue (i.e.DetectFlashVer is not defined) at DetectFlashVer(....).

    – Pradnyarani Nov 10 '15 at 18:22
  • Instead of pasting code here, please instead host the .html file on [OneDrive](http://onedrive.com). – Sampson Nov 10 '15 at 18:42

1 Answers1

0

I am pretty sure this is linked to your // in the end comment section.

Replace this :

<script language="javascript" type="text/javascript">
    <!--
        document.onhelp=new Function("return false");
        window.onhelp=new Function("return false");
    // -->
</script>

By this :

<script language="javascript" type="text/javascript">
     <!--
          document.onhelp=new Function("return false");
           window.onhelp=new Function("return false");
     -->
</script>