Jump to content


Using Querystrings


  • Please log in to reply
6 replies to this topic

#1 Neil Hawkins

Neil Hawkins

    Junior Member

  • Members
  • PipPip
  • 15 posts

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>

#2 Basundhara Ghosal

Basundhara Ghosal

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 2459 posts

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

Basundhara Ghosal

[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter :D

#3 Neil Hawkins

Neil Hawkins

    Junior Member

  • Members
  • PipPip
  • 15 posts

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 DannyR

DannyR

    Advanced Member

  • Members
  • PipPipPipPip
  • 84 posts

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
best,
-d.

#5 Basundhara Ghosal

Basundhara Ghosal

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 2459 posts

Posted 06 October 2010 - 05:12 AM

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

Basundhara Ghosal

[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter :D

#6 Neil Hawkins

Neil Hawkins

    Junior Member

  • Members
  • PipPip
  • 15 posts

Posted 06 October 2010 - 06:50 AM

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.

#7 Basundhara Ghosal

Basundhara Ghosal

    Supreme Being

  • Members
  • PipPipPipPipPipPipPipPip
  • 2459 posts

Posted 06 October 2010 - 09:20 AM

Hi Neil,

You are welcome. :)

We are glad that your issue is resolved.

Keep smiling and keep FusionCharting.
Regards,

Basundhara Ghosal

[url="http://www.twitter.com/fusioncharts"]Follow us[/url] on Twitter :D