Hola
Estoy desarrollando una aplicación usando Rails y quería agregarle
unos graficos.
Instalé
http://ofcl.onrails.com.ar/ segun dicen la documentación y
ahora tengo un problemita. En firefox 2 anda bien (veo el gráfico
perfecto), pero en IE6 me encuentro con el (creo que ya clásico por lo
que vi en los foros):
Open Flash Chart
IO ERROR
Loading test data
Error #2032
Estuve tratando seguir las soluciones que se proponen en los threads
que leí pero no puede llegar a nada. ¿Alguna sugerencia?
Pongo el código por si sirve de algo.
Gracias!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Application </title>
<link href="/stylesheets/main.css?1223567394" media="screen"
rel="Stylesheet" type="text/css" />
<link href="/stylesheets/menu.css?1215698088" media="screen"
rel="Stylesheet" type="text/css" />
<script src="/javascripts/swfobject.js?1228912402" type="text/
javascript"></script>
<script src="/javascripts/json2.js?1228831865" type="text/
javascript"></script>
<!--[if lt IE 7]>
<style type="text/css" media="screen">
#menuh{float:none;}
body{behavior:url(csshover.htc); font-size:100%;}
#menuh ul li{float:left; width: 100%;}
#menuh a{height:1%;font:bold 0.7em/1.4em arial, sans-serif;}
</style>
<![endif]-->
<script src="/javascripts/prototype.js?1213114031" type="text/
javascript"></script>
<script src="/javascripts/effects.js?1205337451" type="text/
javascript"></script>
<script src="/javascripts/dragdrop.js?1205337451" type="text/
javascript"></script>
<script src="/javascripts/controls.js?1205337451" type="text/
javascript"></script>
<script src="/javascripts/application.js?1213284789" type="text/
javascript"></script>
<script src="/javascripts/active_scaffold/default/
active_scaffold.js?1228913560" type="text/javascript"></script><script
src="/javascripts/active_scaffold/default/dhtml_history.js?1228913560"
type="text/javascript"></script><script src="/javascripts/
active_scaffold/default/form_enhancements.js?1228913560" type="text/
javascript"></script><script src="/javascripts/active_scaffold/default/
rico_corner.js?1228913560" type="text/javascript"></script>
<link href="/stylesheets/active_scaffold/default/stylesheet.css?
1228913560" media="screen" rel="Stylesheet" type="text/css" />
<!--[if IE]><link href="/stylesheets/active_scaffold/default/
stylesheet-ie.css?1228913560" media="screen" rel="Stylesheet"
type="text/css" /><![endif]-->
<link href="/stylesheets/active_scaffold/default/export-stylesheet.css?
1228913560" media="screen" rel="Stylesheet" type="text/css" />
<!--[if IE]><link href="/stylesheets/active_scaffold/default/export-
stylesheet-ie.css?1228913560" media="screen" rel="Stylesheet"
type="text/css" /><![endif]-->
<script type="text/javascript">
_translations = {
"OK": "OK",
"Now": "Ahora",
"Today": "Hoy"
}
Date.weekdays = $w("D L Ma Mi J V S");
Date.months = $w("Enero Febrero Marzo Abril Mayo Junio Julio
Agosto Septiembre Octubre Noviembre Deciembre" );
</script>
</head>
<body>
<script src="/javascripts/calendar_date_select/
calendar_date_select.js?1223567204" type="text/javascript"></script>
<script src="/javascripts/calendar_date_select/format_italian.js?
1223567204" type="text/javascript"></script>
<link href="/stylesheets/calendar_date_select/red.css?1223567204"
media="screen" rel="Stylesheet" type="text/css" />
<div id="container">
<div id="base">
<div id="header" style="background-image: url(/images/
logo.gif); background-repeat:no-repeat; background-position: center
right; height: 68px">
<!-- img src="/images/logo.gif"/ -->
<h1> Application </h1>
<h2>
<span class="black"></span>
</h2>
</div>
<!-- If you have any links place them here-->
<!-- div id="navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Administración</a></li>
<li><a href="#">Revisión</a></li>
<li><a href="#">Reportes</a></li>
</ul>
</div> Navigation -->
<!--<div id="content">
<div id="leftpanel">
<div id="bigimage">
</div>
</div>
</div> -->
<!-- Content -->
<!-- %= remote_graph("my_chart",{:route=>"/test/
progress"}) % -->
<div id="lazy_graph497000"></div><script type="text/javascript">
//<![CDATA[
swfobject.embedSWF('/open-flash-
chart.swf','lazy_graph497000','300','150','9.0.0','expressInstall.swf');
//]]>
</script><script type="text/javascript">
//<![CDATA[
function open_flash_chart_data()
{
return JSON.stringify(lazy_graph497000);
}
function findSWF(movieName) {
if (navigator.appName.indexOf("Microsoft")!= -1) {
return window[movieName];
} else {
return document[movieName];
}
}
var lazy_graph497000 = {"y_axis":{"steps":130,"max":130,"min":
0},"title":{"text":"The title of the graph"},"series":
["#<OpenFlashChartLazy::Serie:0x4781618>","#<OpenFlashChartLazy::Serie:
0x477c168>"],"elements":
[{"text":"Argentina","type":"line_dot","colour":"#33ff33","dot_size":
5,"values":[100,120,130,0,0,0,0,0],"width":4},
{"text":"Tupungato","type":"line_dot","colour":"#ff33ff","dot_size":
5,"values":[50,40,90,0,0,0,0,0],"width":4}],"x_axis":{"labels":
{"labels":["Jan 2008","Feb 2008","Mar 2008","Apr 2008","May 2008","Jun
2008","Jul 2008","Aug 2008"]}}};
//]]>
</script>
{"y_axis":{"steps":130,"max":130,"min":0},"title":{"text":"The title
of the graph"},"series":["#<OpenFlashChartLazy::Serie:
0x4781618>","#<OpenFlashChartLazy::Serie:0x477c168>"],"elements":
[{"text":"Argentina","type":"line_dot","colour":"#33ff33","dot_size":
5,"values":[100,120,130,0,0,0,0,0],"width":4},
{"text":"Tupungato","type":"line_dot","colour":"#ff33ff","dot_size":
5,"values":[50,40,90,0,0,0,0,0],"width":4}],"x_axis":{"labels":
{"labels":["Jan 2008","Feb 2008","Mar 2008","Apr 2008","May 2008","Jun
2008","Jul 2008","Aug 2008"]}}}
<!-- End Content -->
<div id="footer">
</div><!-- Footer -->
</div><!-- Base -->
</div><!-- Container -->
</body>
</html>