Sign in to follow this  
kmorse

Putting xml data file for Fusion map on a different server

Recommended Posts

I have a fusion map which, of course, references an xml data file. I keep the xml date file and the html file in the same folder on the same server. However, if I want to place the xml data file on a different server (this file will be rewritten about once a minute and having it on a different server would accelerate the update process), is this possible? I tried it but got an "error reading data" message.

 

 

 

Here is the line I placed in the HTML file where I wanted to reference the fusionmap xml file:

 

 

 

map.setDataURL("http://denverelections.com/race/2008/president/colorado/fusionmaps.xml");

 

 

 

Is there anything about the way I have written that URL that might have caused the error? If not, I will either just write the to the file in the same folder as the html file where everything works fine and use this call to the map file:

 

 

 

map.setDataURL("colo2008.xml");

 

 

 

Thanks in advance,

 

 

 

Keith Morse

 

Denver Post

Share this post


Link to post
Share on other sites

Hi,

I am afraid, we've blocked absolute URLs owing to XSS attacks. And, there is no way to set it off. Our Maps does not accept dataURL="http://denverelections.com/race/2008/president/colorado/fusionmaps.xml".

 

Could you please try using relative path or absolute path without domain?

 

Could you please try using relative URL instead of using absolute URL (one that has http://.. ).

Newer version of Maps does not allow absolute URL to stop XSS Attacks.

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