Page 1 of 1

Quotes in category name

Posted: 11 Dec 2008, 13:08
by rds76
There is a bug if cat. name includes any quote char. Geotag javascript wont work then.
here is example with cat. name AAAA 'BBB:

Code: Select all

GEvent.addListener(marker_phoca_geo, 'click', function() {
			marker_phoca_geo.openInfoWindowHtml('AAAA 'BBB');
			});

error: missing ) after argument list

Re: Quotes in category name

Posted: 12 Dec 2008, 19:40
by Jan
Hi, where you get this error, in php file there is:

Code: Select all

GEvent.addListener(marker_phoca_geo, 'click', function() {
	marker_phoca_geo.openInfoWindowHtml('<?php echo $this->map['geotitle'];?>');
});
do you have some category with ' ?

On demo site, there is:

Code: Select all

GEvent.addListener(marker_phoca_geo, 'click', function() {
	marker_phoca_geo.openInfoWindowHtml('Austria - Wasserloch');
});

Jan

Re: Quotes in category name

Posted: 13 Dec 2008, 01:18
by rds76
HI, error is from javascript console.
Problem is the ' (QUOTE) char which terminate string in param. of function openInfoWindowHtml, for example if u put cat. name "Vacation '08"

Understnad?
U have to double quote all quotes inside string.

Re: Quotes in category name

Posted: 16 Dec 2008, 18:53
by Jan
ok