Sign in to follow this  
mahesh

xml data passing to swfobject 2.0

Recommended Posts

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

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&registerWithJS=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

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

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

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

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

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