FusionCharts Forum: HELP: Ajax and FusionCharts.js not work for my example - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

HELP: Ajax and FusionCharts.js not work for my example I need help to integrate Ajax and FusionCharts.js. Example provided.

#1 User is offline   temporaneo 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 07-March 08

Posted 07 March 2008 - 08:40 AM

Assuming that all paths/filenames are correct (see the attachments),



I have 2 files:

1. container.html with an Ajax call to...

2. graph_1.html (NOTE: div id="chartdiv" must contain almost 1 char)



If I call graph_1.html directly the graph is displayed.

If I call container.html and than click on GRAPH1 link, the graph is not displayed (graph_1.html is loaded correctly, but the graph is not displayed).



Can you help me?



Thank you in advance very much,

Tempo

Attached File(s)


0

Other Replies To This Topic

#2 User is offline   Arindam 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 730
  • Joined: 14-September 07

Posted 08 March 2008 - 12:41 AM

Hi Tempo,
 
  I went through your attachment. I changed your code in ajax.js . i.e

 && xmlhttp.status == 200   //  No need that code

Just need
if (xmlhttp.readyState == 4) {
  obj.innerHTML = xmlhttp.responseText ;
}

Also I changed your code in graph_1.html.
Here you are using ajax, that why when you call graph_1.html via ajax call and putting  that response in div that time javascript was not call automatic that’s why chart not rendered. For showing Fusion Charts you need to use flash <object> tag. It will work fine on ajax call. I am sending you modification version of your program via attachment. hope it will work for you.

Thanking you
Arindam

Attached File(s)


Thanks,

Arindam
0

Other Replies To This Topic

#3 User is offline   temporaneo 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 07-March 08

Posted 13 March 2008 - 05:41 AM

Arindam, thank you for your time

Quote

Arindam (3/8/2008)

Here you are using ajax, that why when you call graph_1.html via ajax call and putting  that response in div that time javascript was not call automatic that’s why chart not rendered.


0

Other Replies To This Topic

#4 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 26 May 2009 - 07:40 AM

You are most welcome! :(
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic