pradeepkumar

Javascript call getDataXML on DragNode

Recommended Posts

Dear Team,

 

 

 

I have modified your example DragNode1.html to add javascript call to get the xml after i drag around the nodes in chart for the new x,y coordinate changes ,however i am always greeted with ourChart.getXMLData is not a function error .

 

 

 

I took the sample javascript code from my local version of

 

http://www.fusioncharts.com/PCDocs/Contents/DragNodeJSRead.html

 

 

 

Please let me know if i am missing any thing obvious here.

 

 

 

I have attached the file with txt extension.

 

 

 

Thanks

 

Pradeep Kumar

DragNode1.txt

Share this post


Link to post
Share on other sites

Hi Team,

 

 

 

Sorry ,i did tested out with this line.I think ,i might have posted an old file.

 

 

 

var chart = new FusionCharts("../Charts/DragNode.swf", "ChartId", "600", "450", "0", "1").

 

 

 

Still not able to make it work.Any other things to look for?

 

 

 

Thanks

 

Pradeep Kumar

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi Pradeep,

 

 

 

Could you please try with the following:

 

 

 

var chart = new FusionCharts("Charts/DragNode.swf", "ChartId", "600", "450", "0", "1")

 

 

 

Hope this helps. Looking forward to your feedback on this. :)

Share this post


Link to post
Share on other sites

Yes tried this one too,but for your line to work, i had to copy the DragNode from ../Charts to Gallery/Charts/DragNode .

 

 

 

Still the same Javascript Error.

 

 

 

Do you have any working example for this with you by any chance.You can try out yourself in house just by adding few lines.

 

If you have an working that would be great.

 

 

 

Thanks

 

Pradeep Kumar

Share this post


Link to post
Share on other sites

Hi,

Your code with registerWithJS works fine in our lab.

Could you please check that you aer using the latest version of the chart SWF? (free update from : http://www.fusioncharts.com/PUC )

Also make sure that you are calling the function AFTER the chart completes rendering.

Modification to your code to track this.

<input id="btn" type="button" value="getxml" onclick="get();" disabled='0'>

...

function FC_Rendered(DOMId)

{

 document.getElementById('btn').disabled=false;

}

 

Share this post


Link to post
Share on other sites

Dear Team,

 

 

 

We have Licensed version 3.1 of Fusion charts very recently.I am changing the HTML of an example that comes bundled with download.

 

 

 

Do i still need a updated version than what we have.

 

 

 

Thanks

 

Pradeep Kumar

Share this post


Link to post
Share on other sites

and by the way i did try out

 

function FC_Rendered(DOMId)

 

{

 

document.getElementById('btn').disabled=false;

 

}

 

 

 

but it never enabled the button in the first case,seems FC_Rendered is never fired.

 

 

 

Pradeep Kumar

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Pradeep,

You are most welcome and thanks for your appreciation. :)

We are  happy to help you.

Happy FusionCharting.

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