pradeepkumar Report post Posted November 11, 2009 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
FusionCharts Support Report post Posted November 12, 2009 Hi, It seems a small change that you need to do. Set the chart's registerWithJS option on. var chart = new FusionCharts("../Charts/DragNode.swf", "ChartId", "600", "450", "0", "1"); Share this post Link to post Share on other sites
pradeepkumar Report post Posted November 12, 2009 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 Report post Posted November 12, 2009 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
pradeepkumar Report post Posted November 12, 2009 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
FusionCharts Support Report post Posted November 12, 2009 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
pradeepkumar Report post Posted November 12, 2009 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
pradeepkumar Report post Posted November 12, 2009 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
FusionCharts Support Report post Posted November 12, 2009 Hi, Could you please let me know, whether you are running the Application locally from local file system? If so, please check that you have Flash Player Global Security setting on. cf: http://www.fusioncharts.com/forum/Topic5009-47-1.aspx#bm8077 or run it from a web server (localhost/live) Share this post Link to post Share on other sites
pradeepkumar Report post Posted November 13, 2009 That fixed the problem. Yes i was just testing it from local drive.I should have tested via a web server. Thanks for all the help Team,you were great. Thanks Pradeep Kumar Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted November 13, 2009 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