mahesh Report post Posted November 18, 2008 Hi All, I am using swfobject2.0 for Fusion Map. I am not able to pass the xml data to swfobject. Can any one help me?? Thanks Mahesh Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 18, 2008 Hi, Following the code that you are earlier using i am providing the feedback. //Render A NEW MAP var so = new SWFObject("${globalFlashPath}FCMap_World.swf?chartWidth=580&chartHeight=350&DOMId=mymovie®isterWithJS=1", "mymovie", "580", "350", "8"); //Pass XML as string (variable strXML) so.addVariable("dataXML",strXML); //Pass XML from file/stream (myXMLFile.xml) //so.addVariable("dataURL","myXMLFile.xml"); so.write("worldMap"); //HOW TO UPDATE AN ALREADY RENDERED MAP //Update map var m=document.getElementById("mymovie"); //Update Map from string m.setDataXML(strXML); //update Map from URL m.setDataURL("newXMLfile.xml"); Share this post Link to post Share on other sites
mahesh Report post Posted November 18, 2008 Thanks for the reply. When we use swfobject2.0 we use: var flashvars = {}; flashvars.xmlPath = "Data.xml"; swfobject.embedSWF("FCMap_World.swf", "flashcontent", "580", "350", "9.0.0", flashvars); This is working in my simple HTML file bot not working with my J2EE application's jsp file. Do you have any idea about that???? Thanks Mahesh Share this post Link to post Share on other sites
Arindam Report post Posted November 18, 2008 Hi, Could you please visit this post? http://www.fusioncharts.com/forum/Topic10027-14-1.aspx Share this post Link to post Share on other sites
mahesh Report post Posted November 18, 2008 Thanks for the reply. I am using the same thing and it is running on my simple HTML but not working on my application's jsp. Pleaes let me know why this is not working on my jsp page???? Thanks Mahesh mahesh Share this post Link to post Share on other sites
mahesh Report post Posted November 18, 2008 It is giving me "Erroe in loading data" on my jsp page. Can anyone help me to sort out the issue as the same thing is working on simple HTML page. Thanks Mahesh Share this post Link to post Share on other sites
mahesh Report post Posted November 18, 2008 Is there any other way, we can pass data directly without having a separate Data.xml. Pleaes help Me.. Thanks Mahesh Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 18, 2008 hi, you can ... using a string. We call this dataXML method. Share this post Link to post Share on other sites
mahesh Report post Posted November 18, 2008 That means i can use flashvars.dataXML = "dataXMLStr"; to feed the data to the swfobject. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted November 18, 2008 Hi Mahesh, Yes, using flashvars.dataXML = YourXMLAsStingVariableHere; you can feed data to the map. Share this post Link to post Share on other sites
mahesh Report post Posted November 20, 2008 Hi Sudipto, I have changed the implementation and now i am using Fusion Maps js file. And i am succesfully getting the FusionMap on HTML as well on our jsp page with the successfully clickable marker. I am sending the package of this in attachment for our future refrences in forums. Thanks a lot for all your support Thanks Mahesh Share this post Link to post Share on other sites
mahesh Report post Posted November 21, 2008 Hi All, I am sending the package again with the evaluation version of swf. Thanks Mahesh ByFusionMaps.zip Share this post Link to post Share on other sites