Hello,

I have a problem with values returned by query by point containing single 
quotes:

javascript:openHyperlink('Comuni', 'nome', 'Rocca de' Giorgi')

this provokes a JS error.

Experimenting, I found that it works when a kind of addslashes is added in 
pmjson.js line 94:

rhtml += '<td><a href="javascript:openHyperlink(\'' +
hypLinkL[0].replace('\'', '\\\'') + '\', \'' + 
hypLinkL[1].replace('\'', '\\\'') + '\', \'' + 
hypLinkL[2].replace('\'', '\\\'') + '\')">' + hypLinkL[3] + '</a></td>';


Regards.
-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to