Peter Tweed

Members
  • Content count

    2
  • Joined

  • Last visited

Everything posted by Peter Tweed

  1. Javascript Ie7 Only Errors

    I have an ajax based webpage. When I try to reset / load the chart, I get JavaScript errors, only in IE7 (not firefox, IE8 etc). I'm having great trouble debugging to find where the problem is (the joys of trying to debug JavaScript in IE7), but I know its Fusion Chart related (as removing the charts stops the error). I'm also getting a problem on which the whole screen appears to freeze for a few seconds after each time the chart is refreshed (again - only in IE) but this is environment specific - the only difference being that out test environment isn't https while live is https (and the problem is in the https version). The charts are displaying correctly eventually. Has anyone come across anything like this? The rendered code (from view source): <script language="JavaScript" src="/libraries/SMResources/FusionCharts/Charts/FusionCharts.js"></script><div id="ServiceTypebottomannuallinechartdiv" align="center">ServiceType Energy Consumption</div><script type="text/javascript">var chartbottom = new FusionCharts("/libraries/SMResources/FusionCharts/Charts/Line.swf?ChartNoDataText= ", "chartIDbottom", "410", "210", "0", "0");chartbottom.setTransparent(true);chartbottom.setDataXML("<chart bgAlpha='0' plotGradientColor=' ' showShadow='1' plotBorderColor='666666' plotBorderThickness='0.5' connectNullData='1' lineDashGap='8' lineThickness='3' bgColor='FFFFFF' rotateNames='0' chartLeftMargin='5' chartRightMargin='90' chartTopMargin='20' chartBottomMargin='35' showValues='0' showBorder='0' alternateHGridColor='ffffff' divLineColor='cfcfcf' divLineAlpha='50' baseFontColor='666666' lineColor='FF7900'><set name='Sun 02' value='97.058' color='FF7900'/><set name='Mon 03' value='104.655' color='FF7900'/><set name='Tue 04' value='57.943' color='FF7900'/><set name='Wed 05' value='102.074' color='FF7900'/><set name='Thu 06' value='' color='FF7900'/><set name='Fri 07' value='' color='FF7900'/><set name='Sat 08' value='' color='FF7900'/></chart>");chartbottom.render("ServiceTypebottomannuallinechartdiv");< /script></div> The attachment contains the JavaScript errors, which all seem to happen around the fusion chart JavaScript. Thanks (in advance) for your input Peter pausing issue.doc
  2. Error Rendering Chart With Javascript

    I've been trying to test a website internally using the iPhone Simulator (version 3.1) before putting it live and have been having the same problem / error message. Although iPhones can't run flash, it appears to be believing there is flash installed and so get the JavaScript error above in the debug console. The Fusion Charts online examples don't work (so its not just my implementation!). Since the examples do work in a real iPhone (and so the simulator isn't an exact copy of the iPhone (!) ), I'm sure this is partly a bug in the simulator, but since other websites work correctly in the simulator, I'd say this is a bug in Fusion charts also. Its a real pain for me because i've no way of testing the system before go live now (no WiFi hotspots due to security concerns)...