Neil Hawkins

Using Querystrings

Recommended Posts

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>

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

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. :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Danny,

 

We apologize for the inconvenience caused.

 

As you have stated, please try using the code using "escape" in place of "encode".

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi Danny,

 

We apologize for the inconvenience caused.

 

As you have stated, please try using the code using "escape" in place of "encode".

 

Hope this helps. :)

 

 

Works, Thanks very much.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Neil,

 

You are welcome. :)

 

We are glad that your issue is resolved.

 

Keep smiling and keep FusionCharting.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now