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
|