我是在php里生成.json文件,然后swfobject调用,显示出flash
郁闷,我的在本地好的,传到服务器就这问题,像上面改了也不行
Open Flash Chart
IO ERROR
Loading test data
Error #2032
This is the URL that I tried to open:12727917.json 看网上说在open-flash-chart.swf后面加r="+ Math.random() * 100000,加了还是不行
该怎办呢?
郁闷,我的在本地好的,传到服务器就这问题,像上面改了也不行
Open Flash Chart
IO ERROR
Loading test data
Error #2032
This is the URL that I tried to open:12727917.json 看网上说在open-flash-chart.swf后面加r="+ Math.random() * 100000,加了还是不行
该怎办呢?
一步一步检查吧。
或者你把你的代码贴出来。
检查一下JSON文件的读取权限还有路径是否正确,根据你的描述可能路径不正确
解决方案就是使用cache-control:
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
<handlers>
<add verb="*" path="ofc_handler.ofc" name="OpenFlashChart" type="OpenFlashChart.WebHandler.ofcHandler, OpenFlashChart" />
</handlers>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>环境 win7,OpenFlashChart.dll v1.0
将中的 path="ofc_handler.aspx" 改为 path="ofc_handler.ofc" 即可