Sign in to follow this  
darshan

JavaScript functions as links

Recommended Posts

I am using your fusionmaps in a .Net application. I am using

setDataXML method and trying to use the "JavaScript functions as links". But

even after passing the valid XML, swf is giving message "invalid XML data". and

when I try using setDataURL method, and passing the same xml from external

file, its working properly. Can't I use setDataXML for "JavaScript functions

as links"?

Share this post


Link to post
Share on other sites

i am passing the below string to setdataXML method. i have used token overloader () to pass double qoutes...

"<map borderColor='005879' fillColor='D7F4FF' numberSuffix=' Mill.' includeValueInLabels='1' labelSepChar=': ' baseFontSize='9'> <data> <entity id='NA' value='515' link="JavaScript:myJS('NA, 515');"/> <entity id='SA' value='373' link="JavaScript:myJS('SA, 373');"/> <entity id='AS' value='3875' link="JavaScript:myJS('AS, 3875');"/> <entity id='EU' value='727' link="JavaScript:myJS('EU, 727');"/> <entity id='AF' value='885' link="JavaScript:myJS('AF, 885');"/> <entity id='AU' value='32' link="JavaScript:myJS('AU, 32');"/> </data></map>"

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