Sign in to follow this  
Arindam

setdataurl path

Recommended Posts

I apologize if this is not in the correct forum.

 

 

 

I want the xml file to be in a different location than the flash file.

 

 

 

If I have the code as follows, it works correctly.

 

var map = new FusionMaps("/flash/FCMap_USA.swf", "Map1Id", "750", "460", "0", "0");

 

map.setDataURL("/flash/CustomerIndex.xml");

 

 

 

If I change the path to the following, it errors.

 

var map = new FusionMaps("/flash/FCMap_USA.swf", "Map1Id", "750", "460", "0", "0");

 

map.setDataURL("/App_Data/map.xml");

 

 

 

The error in the html page is "Error in loading data". I have verified the path is correct, and the xml file is the exact same file in both. Is there an obvious fix to this, or is it not possible to put the xml file in a different location?

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