Problema con IE6

7 views
Skip to first unread message

Marcos Chicote

unread,
Dec 10, 2008, 8:05:52 AM12/10/08
to Open Flash Chart Lazy
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>

Pedro Visintin

unread,
Dec 10, 2008, 8:19:06 AM12/10/08
to open-flash...@googlegroups.com
Tenes el código ruby que usaste para generarlo?

Gracias

P

2008/12/10 Marcos Chicote <totoc...@gmail.com>



--
Pedro   Visintin . S o f  t w a r e   A r c h i t e c t
http://www.pedrovisintin.com

Ruby On Rails Argentina. http://blogs.onrails.com.ar

Personal page:
http://www.p-e-t-e-r-p-u-n-k.com.ar

"Todo descontento por aquello que no tenemos parece provenir solamente de nuestra falta de gratitud por aquello que tenemos"

Marcos Chicote

unread,
Dec 10, 2008, 8:25:31 AM12/10/08
to Open Flash Chart Lazy
Sí.

Controller:

def progress
@bar_graph = OpenFlashChartLazy::Line.new("The title of the
graph")
first_serie = OpenFlashChartLazy::Serie.new(
[["2008-1",100],["2008-2",120],["2008-3",130]],
{:title=>"Argentina",:start_date=>Time.mktime
(2008,1,1),:items=>8})

second_serie = OpenFlashChartLazy::Serie.new(
[["2008-1",50],["2008-2",40],["2008-3",90]],
{:title=>"Tupungato",:start_date=>Time.mktime
(2008,1,1),:items=>8})

@bar_graph.add_serie(first_serie)
@bar_graph.add_serie(second_serie)
end

View:
<%= inline_graph(@bar_graph) %>

<%= @bar_graph.to_graph_json %>

Y en application.rhtml tengo:

<%= javascript_include_tag "swfobject" %>
<%= javascript_include_tag "json2" %>

Gracias!

On 10 dic, 11:19, "Pedro Visintin" <pedro.visin...@gmail.com> wrote:
> Tenes el código ruby que usaste para generarlo?
>
> Gracias
>
> P
>
> 2008/12/10 Marcos Chicote <totochic...@gmail.com>
>
>
>
>
>
> > 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
> Ruby On Rails Argentina.http://blogs.onrails.com.ar

Pedro Visintin

unread,
Dec 10, 2008, 4:54:20 PM12/10/08
to open-flash...@googlegroups.com
Gracias por la data

Estoy trabajando en una nueva versión corregida y con mejoras pequeñas que estimo tenerla mañana

Saludos

P

2008/12/10 Marcos Chicote <totoc...@gmail.com>




--
Pedro   Visintin . S o f  t w a r e   A r c h i t e c t
http://www.pedrovisintin.com

Ruby On Rails Argentina. http://blogs.onrails.com.ar

Marcos Chicote

unread,
Dec 11, 2008, 6:43:57 AM12/11/08
to Open Flash Chart Lazy
Gracias.
Hay un bug o estoy haciendo algo mal entonces?

Saludos!

On 10 dic, 19:54, "Pedro Visintin" <pedro.visin...@gmail.com> wrote:
> Gracias por la data
>
> Estoy trabajando en una nueva versión corregida y con mejoras pequeñas que
> estimo tenerla mañana
>
> Saludos
>
> P
>
> 2008/12/10 Marcos Chicote <totochic...@gmail.com>
> > > > Instaléhttp://ofcl.onrails.com.ar/segundicen la documentación y

Pedro Visintin

unread,
Dec 11, 2008, 7:26:24 AM12/11/08
to open-flash...@googlegroups.com
Aparentemente hay un bug, pero en el IE :-)

Todavia no identifique el problema exactamente, estoy en eso.

La nueva versión soportará multiples inlines. Te aviso cuando este listo.

Si necesitas usarlo ya usa la version remote_graph

Saludos

P

2008/12/11 Marcos Chicote <totoc...@gmail.com>
Ruby On Rails Argentina. http://blogs.onrails.com.ar

Marcos Chicote

unread,
Dec 11, 2008, 7:47:57 AM12/11/08
to Open Flash Chart Lazy
Yo encontre esto:

I've discovered that IE6 doesn't gracefully handle Rails' Cache-
Control header ('no-cache') with gzipping. See
http://www.justsuppose.com/2007/09/more-flash-and-ie-6-gotchas-2032-error.html
for more details. To fix this, I added this code just below ln 49 of
output_compression.rb: if controller.response.headers['Cache-Control']
== 'no-cache' controller.response.headers['Cache-Control'] = 'no-
cache, no-store, must-revalidate, max-age=-1' end

en http://agilewebdevelopment.com/plugins/better_output_compression

Lamentablemente el link de justsuppose no funciona, asi q no puedo
leer bien el error, pero puede que tenga algo que ver con eso.
Igual vi los headers con Live HTTP Headers en Firefox y al menos ahi
no dice que use gzip.

On 11 dic, 10:26, "Pedro Visintin" <pedro.visin...@gmail.com> wrote:
> Aparentemente hay un bug, pero en el IE :-)
>
> Todavia no identifique el problema exactamente, estoy en eso.
>
> La nueva versión soportará multiples inlines. Te aviso cuando este listo.
>
> Si necesitas usarlo ya usa la version remote_graph
>
> Saludos
>
> P
>
> 2008/12/11 Marcos Chicote <totochic...@gmail.com>
> > > > > > Instaléhttp://ofcl.onrails.com.ar/segundicenla documentación y
> ...
>
> leer más »

Pedro Visintin

unread,
Dec 11, 2008, 9:24:25 AM12/11/08
to open-flash...@googlegroups.com
Gracias Marcos!

El problema que encontré fue otro, algo completamente IE

Ya estoy terminando los cambios para la nueva version.

El tema es que el bentito amigo IE tiene problemas cuando el div se llama igual que la variable (no me preguntes porqué)

Lamentáblemente con prototype o scriptaculous no es compatible, creo que scriptaculous.

la nueva versión esta en este branch  compatibility_improved

Probala y contame

Saludos

P

2008/12/11 Marcos Chicote <totoc...@gmail.com>

Pedro Visintin

unread,
Dec 11, 2008, 9:27:39 AM12/11/08
to open-flash...@googlegroups.com
Fijate que actualicé el readme en ese branch con los cambios de inline graph

2008/12/11 Marcos Chicote <totoc...@gmail.com>

Marcos Chicote

unread,
Dec 11, 2008, 9:57:26 AM12/11/08
to Open Flash Chart Lazy
Ah también había encontrado algo de eso, pero con prototype.

http://sourceforge.net/forum/message.php?msg_id=5197050

Ahora estoy con otra cosa, pero creo que mañana lo pruebo y te cuento.

On 11 dic, 12:27, "Pedro Visintin" <pedro.visin...@gmail.com> wrote:
> Fijate que actualicé el readme en ese branch con los cambios de inline graph
>
> 2008/12/11 Marcos Chicote <totochic...@gmail.com>
>
>
>
> > Yo encontre esto:
>
> > I've discovered that IE6 doesn't gracefully handle Rails' Cache-
> > Control header ('no-cache') with gzipping. See
>
> >http://www.justsuppose.com/2007/09/more-flash-and-ie-6-gotchas-2032-e...
> > for more details. To fix this, I added this code just below ln 49 of
> > output_compression.rb: if controller.response.headers['Cache-Control']
> > == 'no-cache' controller.response.headers['Cache-Control'] = 'no-
> > cache, no-store, must-revalidate, max-age=-1' end
>
> > enhttp://agilewebdevelopment.com/plugins/better_output_compression
> > > > > > > > Instaléhttp://ofcl.onrails.com.ar/segundicenladocumentación y
> ...
>
> leer más »

Pedro Visintin

unread,
Dec 11, 2008, 10:03:01 AM12/11/08
to open-flash...@googlegroups.com
Voy a agregar ese patch en breve

Gracias

P

2008/12/11 Marcos Chicote <totoc...@gmail.com>

Pedro Visintin

unread,
Dec 16, 2008, 10:00:38 AM12/16/08
to open-flash...@googlegroups.com
Pudiste probarlo?

Saludos

P

2008/12/11 Marcos Chicote <totoc...@gmail.com>
Reply all
Reply to author
Forward
0 new messages