JS error and no map displayed with special characters
Posted: 03 Mar 2016, 13:23
Hello,
I've migrated a client Joomla site to J3, updating Phoca maps too to latest version.
I've got JS error:
SyntaxError: missing } after property list
with:
var infoPhocaWindow2PlgPM1 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">ITEP L\'Oratoire - Liste</div><div><p>ITEP L'Oratoire</p></div>'
});
French language is used here and ' character seems to be the issue. It should be protected with \ (everywhere...).
By comparaison with the J.25 phoca maps version, this point was managed correctly:
var infoPhocaWindow2PlgPM1 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">ITEP L\'Oratoire - Liste</div><div><p>ITEP L\'Oratoire</p></div>'
});
Can you help me to fix this ?
Thank you for your support,
Stephane
I've migrated a client Joomla site to J3, updating Phoca maps too to latest version.
I've got JS error:
SyntaxError: missing } after property list
with:
var infoPhocaWindow2PlgPM1 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">ITEP L\'Oratoire - Liste</div><div><p>ITEP L'Oratoire</p></div>'
});
French language is used here and ' character seems to be the issue. It should be protected with \ (everywhere...).
By comparaison with the J.25 phoca maps version, this point was managed correctly:
var infoPhocaWindow2PlgPM1 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">ITEP L\'Oratoire - Liste</div><div><p>ITEP L\'Oratoire</p></div>'
});
Can you help me to fix this ?
Thank you for your support,
Stephane