Rajavelu

Fusioncharts with ajax:

Recommended Posts

Fusioncharts with ajax:

           I have generate the following code(bold) in java, and this code will set as innerhtml for a div / td / ... tags, by using ajax, but the chart is not rendering.

 

           My sample code:

     <script>

           function test(){

               var details="<span id='chart'></span><script>$('#chart').insertFusionCharts({ dataSource: 'test.xml',height : '100%',width : '90%',renderer  : 'JavaScript',quality : 'high',swfUrl:'ZoomLine.swf',dataFormat: 'xmlurl', debugMode: '1' }); </script>";

               document.getElementById("chart_td").innerHtml=details;

           }

    <script>

    <table><tr><td id="chart_id"></td></tr></table>

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