|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/22/2008 9:27:01 AM
Posts: 20,
Visits: 64
|
|
Hi,
I am are making use of velocity template to create the xml to render the chart on a portlet.when i click on the chart i want to invoke a javascript in clickURL attribute of the chart tag.
I am not sure what a missing here ,but the javascript function does not get invoked.
My javascript function is present in the jsp where i render the chart.
This is the javascript i want to invoke:
<portlet:namespace/> testMethod();
In my Velocity template this is formats i have tried ,but are not working.
clickURL='javascript:%3Cportlet%3Anamespace%2F%3ETestMethod()'
clickURL='javascript:TestMethod()'
The exception in the chart debugger is :
XML Data provided using dataXML method.
ERROR: Invalid XML encountered. An attribute value is not properly terminated. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them.
The chart does not get displayed due to this error.
Please provide some pointers to what am missing in the encoded string that am using.Its very urgent.Stuck at this point.
Thanks,
Olives
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:24:22 AM
Posts: 903,
Visits: 1,509
|
|
| Hi, Could you send us the XML that is being generated?
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/22/2008 9:27:01 AM
Posts: 20,
Visits: 64
|
|
Hi,
Thanks for the immediate reply.
Today i was trying the tutorial mentioned by the Fusion charts site:
http://www.fusioncharts.com/Docs/Index.html->Guide for WEb Developers->DrillDown charts->JSFunctions as links.
Tried out the code as is :
PFA the JSExample.xml, the JSExample.html(JSExample.txt), chart debugger log.
The chart renders ,but while clicking on the thumbnail nothing happens.
Thanks,
Olives
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/22/2008 9:27:01 AM
Posts: 20,
Visits: 64
|
|
Hi,
could someone help with this?
~Olives
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:24:22 AM
Posts: 903,
Visits: 1,509
|
|
| Hi, Could you please send us the XML for the first porblem? Let us take the issues one by one. I hope that would be better. For the second issue, could you please try running the sample from a web server, say localhost, iis or apache etc.?
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 12/22/2008 9:27:01 AM
Posts: 20,
Visits: 64
|
|
Hi,
PFA the xml attached for the first problem.
Thanks,
Olives
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 1:24:22 AM
Posts: 903,
Visits: 1,509
|
|
| Hi, Could you please use clickURL='%26lt;portlet%3Anamespace%2F%26gt;TestMethod();' instead?
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
|
| | |