Sign in to follow this  
Guest Rajroop

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

Recommended Posts

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

Ajax-example.zip

Edited by Guest

Share this post


Link to post
Share on other sites

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

Ajax-example.zip

Share this post


Link to post
Share on other sites

Arindam, thank you for your time

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

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
Sign in to follow this