Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
chart with remote datasource doesn't poll in IE6   Message List  
Reply | Forward Message #34083 of 52127 |
Re: chart with remote datasource doesn't poll in IE6


> Ok, thanks. Figured out the problem: IE6 is caching the JSON data and
> not hitting the server for updates...it's getting it from cache, so
> the chart never updates.

Just to follow up, caching was the problem. Setting no-cache HTTP
headers makes IE6 update the chart. Thanks for your help, Tripp.




Tue Jul 8, 2008 9:37 pm

grimholtz
Offline Offline
Send Email Send Email

Forward
Message #34083 of 52127 |
Expand Messages Author Sort by Date

Hi, I've got a chart with a JSON datasource that's supposed to be polled every x seconds. The datasource polling works just fine in Firefox 3 and the chart...
grimholtz
Offline Send Email
Jul 2, 2008
10:38 pm

... Some more info: Firefox 2 displays the following error: Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12"...
grimholtz
Offline Send Email
Jul 2, 2008
11:10 pm

... The problem is that getSWFHTML() in charts-experimental-*.js generates HTML, not XHTML. Line 113 of charts-experimental-debug.js is: pairs =...
grimholtz
Offline Send Email
Jul 2, 2008
11:20 pm

... Well, that didn't solve the problem. Still no datasource polling except in Firefox 3....
grimholtz
Offline Send Email
Jul 2, 2008
11:39 pm

Please send me your code or a link where I can view this. Thanks, Tripp...
tripp.bridges
Offline Send Email
Jul 3, 2008
12:08 am

... Hi Tripp, Here's the code. There are no javascript errors except this one: "Empty string passed to getElementById()" (reported by Firebug in Firefox since ...
grimholtz
Offline Send Email
Jul 7, 2008
4:24 pm

... Here's the source for chartpanel.js in case that helps: /** * The ChartPanel class bundles a YUI Chart, YUI datasource, associated callbacks, * and some...
grimholtz
Offline Send Email
Jul 7, 2008
4:26 pm

Hi, Can you please send me a sample of what the json feed returns? Thanks, Tripp ... many ... parsedResp), ... element...
tripp.bridges
Offline Send Email
Jul 7, 2008
4:47 pm

Hi, I have been able to get your code to work on my local test environment in IE 6. I have not made any changes to your code other than the following: I...
tripp.bridges
Offline Send Email
Jul 7, 2008
6:06 pm

Hi Tripp, Thanks for your help so far. ... I don't understand--the code I posted already used the files hosted at yui.yahooapis.com. Are you only referring to...
grimholtz
Offline Send Email
Jul 7, 2008
6:34 pm

Hi, Your charts-experimental.js is locally hosted in the code that you sent me. <script type="text/javascript" ...
tripp.bridges
Offline Send Email
Jul 7, 2008
6:55 pm

... Oh, right. I'm hosting that locally because I've changed line 127 in that file from: pairs = this.getVariablePairs().join("&"); to: pairs =...
grimholtz
Offline Send Email
Jul 7, 2008
7:33 pm

Is a content-type header required for JSON content and IE6? If so, what should I use?...
grimholtz
Offline Send Email
Jul 7, 2008
8:31 pm

I am using "application/json" without any errors. Try that....
tripp.bridges
Offline Send Email
Jul 7, 2008
8:45 pm

... Same results for me: works fine in Firefox 3. In IE6, the chart is only drawn once then no updates (and I've checked the server... there are no calls to...
grimholtz
Offline Send Email
Jul 7, 2008
9:16 pm

That error is caused when you do not include the dom file before it: <script type="text/javascript" ...
tripp.bridges
Offline Send Email
Jul 7, 2008
11:47 pm

... Ok, thanks. Figured out the problem: IE6 is caching the JSON data and not hitting the server for updates...it's getting it from cache, so the chart never...
grimholtz
Offline Send Email
Jul 8, 2008
2:08 pm

... Just to follow up, caching was the problem. Setting no-cache HTTP headers makes IE6 update the chart. Thanks for your help, Tripp....
grimholtz
Offline Send Email
Jul 8, 2008
9:37 pm

Good news! Thanks for posting your solution. Tripp...
tripp.bridges
Offline Send Email
Jul 8, 2008
9:39 pm

... Not sure if you contribute to YUI, Tripp, but if so, you might consider adding this information (setting the Content-Type and no cache headers) to the...
grimholtz
Offline Send Email
Jul 9, 2008
8:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help