[OpenLayers-Users] semicolon is GeoRSS url's

Christopher Schmidt crschmidt at metacarta.com
Sun Jan 14 11:11:15 EST 2007


On Sun, Jan 14, 2007 at 04:53:31PM +0100, Robert Buzink wrote:
> I have a  little problem that I can't solve. I want to include georss layers
> in a map from a mysql database through php. It works fine except for url's
> that have a semicolon in it. I tried escaping before adding the url to the
> database, escaping with javascript and even came up with the code below
> (within a php echo statement), but nothing works! What am I missing?
> 
> <code>
> var url = "http://geourl.org/near?p=http://www.robertbuzink.nl" +
> unescape('%3b') + "format=rss10";
> 
> var geourlgent = new OpenLayers.Layer.GeoRSS("geourl near gent...", url);
> 
> map.addLayers([geourlgent]);';
> </code>

Pasting:

http://geourl.org/near?p=http://www.robertbuzink.nl;format=rss10

into http://openlayers.org/dev/examples/georss.html

works for me. Perhaps this is fixed in the most recent version of SVN:
can you check?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list