IE7 and SetVariable("update_url",...)

3 views
Skip to first unread message

cpr

unread,
Dec 27, 2007, 4:48:39 PM12/27/07
to ZiYa Plugin
Hi,

I'm just looking for any confirmation of success when using
SetVariable("update_url",...) via javascript in IE7. This works fine
for me in Firefox but does nothing in IE7. I've debugged it to the
point of validating that the DOM object and the actual URL passed are
the same in both browsers.

I realize that this is more of an issue with SWF/XML than with Ziya,
but this forum seems to have the most advanced users so I'm hoping
that someone else has tried this.

Thanks,

- Chris

Fernand Galiana

unread,
Dec 27, 2007, 8:50:33 PM12/27/07
to ziya-...@googlegroups.com
Hi Chris,

I think this might be due to the different treatment of the object/
embed tab in the code generated by the ziya_chart
helper. There was an issue in the helper a while back with the
generation of the id tags. I believe this is fixed in the
latest version of ZiYa.

Here is my setup, which I believe works on both FF and IE...

View template

<%= ziya_chart load_chart_url, :id => "chart", :width =>
400, :height =>300, :wmode => "transparent"%>

Javascript

function update_it( update )
{
document.chart.SetVariable( 'update_xml', update );
}

Note: document.xxx needs to match the id specified in the
ziya_chart helper...

-Fernand

Lori Olson

unread,
Jan 2, 2008, 12:56:48 PM1/2/08
to ziya-...@googlegroups.com
Is your update url different than your original chart url?  I had this same problem, and it turned out to be a caching problem, where IE7 (and IE6 for that matter) were caching, so no visible update occurred.  If you think this might be your problem, investigate the various caching options (response headers, ziya_chart helper), and see if they help.

Regards, Lori

cpr

unread,
Jan 4, 2008, 12:17:05 AM1/4/08
to ZiYa Plugin

As per Fernand's advice, I updated from .019 to .021 (the current
release). No change.

As per Lori's advice, I reviewed the cache options for the umpteenth
time. No change. I've tried all combinations of:

- response.headers["Cache-Control"] = "cache,must-revalidate"

and

response.headers["Cache-Control"] = "no- cache"

- response.headers["Pragma"] = "public"

and

not

- :cache => true in the ziya_chart call

and

not

So, 2 x 2 x 2 = 8 combinations. Including flushing my browser cache.

Since no-one has specifically commented on the usage of SetVariable I
assume that it simply hasn't been debugged on IE6/IE7.

Lori interestingly asked if my URL is the same. The params are
different, but the part before the '?' is the same.

% grep -R -i setvariable vendor/plugins/ziya

returns nothing so there are no tests for this.

- Chris


fernand...@gmail.com

unread,
Jan 4, 2008, 11:55:17 AM1/4/08
to ZiYa Plugin
Hi Chris,

Hum my bad, did not read your question right.
I see you are using update_url and not
update_xml. I was able to repro your case in IE7 and indeed it's
busted. Does
seem to work correctly on ff. Doh ! Got to love IE...
Tried to google it but came up empty. I'll look into it this
weekend.

In the mean time...
Is there a way you can do update_xml which does work in IE6/7 ?
There is an example on how to achieve that updated in the sample
charting app..

-Fernand

fernand...@gmail.com

unread,
Jan 4, 2008, 12:03:23 PM1/4/08
to ZiYa Plugin
Chris,

Please disregard my previous post. Just had a brain fart...

The update_url does work for me on IE7. Since I am running IE7 on a
different
box and running on localhost it works on FF but localhost does not
resolve on
the other box. Could it be the same issue you ran into ?

If I change the code to relative url it worked in both cases

document.chart.SetVariable( 'update_url', "/tutorial/load_day_1" );

-Fernand

On Jan 3, 10:17 pm, cpr <crosebr...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages