qingyangmoke / explorercanvas

Explorercanvas (excanvas.js) is an open source, Apache-licensed JavaScript library that implements the canvas API in Internet Explorer
Apache License 2.0
0 stars 0 forks source link

Iframe issue #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. HTML code: <head>
<!--[if IE]><script src="../js/excanvas.js"></script><![endif]-->
<style>
      body  {
          font: 100% "Arial", sans-serif;
          text-align:left;
          margin: 0px 0px 0px 0px;
          padding: 0px 0px 0px 0px;
          border-width: 0px 0px 0px 0px;
      }
</style> 
</head>

<script type="text/javascript" src="../js/graph.js"></script>
<div id="graphdiv4" 
style="width:700px;height:380px;font-family:arial;vertical-align:middle;backgrou
nd:url('../Images/modelografbg.png');">
</div>
<script type="text/javascript">
  g = new Dygraph(
    document.getElementById("graphdiv4"),
    "Date,Distance  (x10),Velocity /h \n " +
"2010-11-04 00:00:00,0,1,0,1 \n " +
"2010-11-04 00:00:56,9.97704982758,1,5.51756995065,1 \n "+
"2010-11-04 00:01:51,17.7126065493,1,17.9713403477,1 \n "+
"2010-11-04 00:02:03,28.6355019808,1,14.6577534368,1 \n "+
"2010-11-04 00:03:30,35.08030653,1,21.9091070615,1 \n ",
    {
      showRoller: false,
      includeZero: true,
      errorBars: true,
      strokeWidth: 2,
      pointSize:4,
      width:700,
      height:380,
      labelsDivWidth:420,
      pixelsPerXLabel:65,
      xAxisLabelWidth:65,
      colors: ['#8bd11b','#dd5300']
    }
  );
</script>

2. when i show this it works!, but when i use a iframe the response is like my 
attached file

What version of the product are you using? On what operating system?
lastest

Please provide any additional information below.

Original issue reported on code.google.com by Neverh...@gmail.com on 1 Dec 2010 at 4:13

Attachments:

GoogleCodeExporter commented 9 years ago
Yep, I have the same issue for InternetExplorer only. I don't see any graph 
like in the example image. Also seems graph is clickable, because the event  
works and returns right data

Original comment by pkopyt...@gmail.com on 15 Feb 2011 at 12:10

GoogleCodeExporter commented 9 years ago
Hi, I'm facing the similar issue. Is there any workaround for rendering in the 
iframe?

Original comment by jacekza...@gmail.com on 8 Apr 2014 at 2:13