Using Querystrings
Started by Neil Hawkins, Oct 04 2010 01:47 PM
6 replies to this topic
#1
Posted 04 October 2010 - 01:47 PM
Hi is it possible to build in querystrings to the myChart.setDataURL
this would enable me to build a more interactive chart... Thx
example:
<script type="text/javascript">
var myChart = new FusionCharts("../FusionCharts_Professional/Charts/MSLine.swf", "myChartId", "1150", "400", "0", "0");
myChart.setDataURL("nnw_risk/Performance.asp?indexId0=HFRICAI Index&indexId1=MSAUAAPF Index");
myChart.setTransparent(true);
myChart.render("nnwperf");
</script>
this would enable me to build a more interactive chart... Thx
example:
<script type="text/javascript">
var myChart = new FusionCharts("../FusionCharts_Professional/Charts/MSLine.swf", "myChartId", "1150", "400", "0", "0");
myChart.setDataURL("nnw_risk/Performance.asp?indexId0=HFRICAI Index&indexId1=MSAUAAPF Index");
myChart.setTransparent(true);
myChart.render("nnwperf");
</script>
#2
Posted 05 October 2010 - 09:38 AM
Hi,
Please try encoding the code that you are using:-
Ref.- mychart.setDataURL(encode("nnw_risk/Performance.asp?indexId0=HFRICAI Index&indexId1=MSAUAAPF Index"));
I hope this helps.
Please try encoding the code that you are using:-
Ref.- mychart.setDataURL(encode("nnw_risk/Performance.asp?indexId0=HFRICAI Index&indexId1=MSAUAAPF Index"));
I hope this helps.
Regards,
Basundhara Ghosal
[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter
Basundhara Ghosal
[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter
#3
Posted 05 October 2010 - 01:27 PM
Hi,
Please try encoding the code that you are using:-
Ref.- mychart.setDataURL(encode("nnw_risk/Performance.asp?indexId0=HFRICAI Index&indexId1=MSAUAAPF Index"));
I hope this helps.
What does ecode do?
The ASP page has Response.ContentType = "text/xml" which writes out the string as xml... is it the same?
so far I can only get the first querystring to work, encode does nothing... subsquent QS do not work, i have checked everything... typos..everything.... thx for any further help on this
#4
Posted 05 October 2010 - 03:21 PM
Neil,
I assume he meant escape, not encode (unless FC provides an encode method on window). Check out the following page on w3schools.com:
JavaScript escape() Function
I assume he meant escape, not encode (unless FC provides an encode method on window). Check out the following page on w3schools.com:
JavaScript escape() Function
best,
-d.
-d.











