IE caching dynamically generated data used in charts
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



IE caching dynamically generated data used in... Expand / Collapse
Author
Message
Posted 2/1/2008 2:42:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/4/2008 7:17:14 AM
Posts: 2, Visits: 6
I'm using fusion charts with asp by using the dataURL facility on the object. The datapage being called is an asp file that pulls data from the database and streams the xml content back to the fusion charts flash for display.

This works fine, however there are some parameters that allow different values to be pulled back from the db, unfortunately, even though the xml data streamed back is always correct, the fusion charts flash does not reflect the new data being pulled.

I suspect that the data is being cached in the browser but ......

Help urgently needed

Post #4295
Posted 2/1/2008 3:55:10 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884, Visits: 1,420
hi,

To stop caching of the XML file while passing the dataURL to the chart you need use a cache killer - as you may say. This you can do by adding a Querystring parameter whose value will never be same. Like:

setDataURL("foo.asp?noCache=" & Timer)

Where foo.asp returns the XML.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #4296
Posted 2/1/2008 6:58:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/4/2008 7:17:14 AM
Posts: 2, Visits: 6
Hi Sudipto,

thanks for the feedback, however still having issues and not sure if what I'm doing is right.

TRied to follow ur suggestion by altering my code as shown below and now I'm getting an 'error loading data message'

This is a sample of the code i'm using on the fusion charts object declaration on my page

dUrl = "?m=" & Request.QueryString("m") & "&y=" & Request.QueryString("y")

<object blah... >

<param name="FlashVars" value="&dataURL=trackit/arc_trackit_data2.asp<%=dUrl%>" />

<param name=movie value="Charts_v3/MSBar3D.swf?chartWidth=550&amp;chartHeight=250" />

<param name=quality value=high />

<param name="wmode" value="transparent" />

<param name="allowscriptaccess" value="samedomain" />

<embed src="Charts_v3/MSBar3D.swf" flashvars="&dataURL=trackit/arc_trackit_data2.asp<%=dUrl%>" quality=high bgcolor=#FFFFFF width="980" height="400" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" swliveconnect="true" allowscriptaccess="samedomain"></embed>

</object>

Post #4303
Posted 2/1/2008 7:48:14 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884, Visits: 1,420
hi,

try URL encoding the whole URL or atlest the query string that you are adding.

Regards,

Sudipto Choudhury
FusionCharts Team

Post #4305
Posted 2/1/2008 7:50:51 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884, Visits: 1,420
hi, May i also suggest you to use FusionCharts.asp that has 2 methods renderChart and renderChartHTML which help you easily embed the charts in your page from ASP. You need not waste time writing all <object bla..bla...>

For more on this you can visit our online documentaion :

www.fusioncharts.com/Free/docs

in Section : "Using With ASP"

Regards,

Sudipto Choudhury
FusionCharts Team

Post #4306
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:07pm


Execution: 0.094.