Sign in to follow this  
roddy

setDataURL method only can send one GET param?

Recommended Posts

I am trying to render a map with dynamic content via data given to a php file with GET parameters. However, the method only appears capable of sending one parameter!

 

 

 

In the PHP:

 

echo '

 

PowerMaps

 

 

var map = new PowerMap("../swf/FCMap_USA.swf", "Map1Id", "750", "400", "0", "0");

 

map.setDataURL("maps_data_xml.php?start_date=02-19-2008&words=haagen&normalized=1");

 

map.render("mapdiv");

 

 

';

 

 

 

And in the page source it looks OK:

 

 

 

 

 

PowerMaps

 

 

var map = new PowerMap("../swf/FCMap_USA.swf", "Map1Id", "750", "400", "0", "0");

 

map.setDataURL("maps_data_xml.php?start_date=02-19-2008&words=haagen&normalized=1");

 

map.render("mapdiv");

 

 

 

 

OK, all good, but in the apache logs the page is given as

 

 

 

at: www.xx.com/intern/data/maps_data_xml.php?start_date=02-19-2008

 

 

 

i.e. no second or third parameter. I flipped the order of the parameters and only the first one is ever sent (i.e. if I put "words" first then the words get sent but none of the others)

 

 

 

I think this is a major bug unless I am doing something wrong....I use similar methods with FusionCharts and never have any problems.

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