[mapguide-users] SQL - html display problem in properties pane
RenoSun
renolionheart at gmail.com
Fri Jul 29 09:36:22 PDT 2016
Hi Maselli,
Are you using fusion flexible layout? If so, you may want to use FusionSF.js
for your fusion template html, and modified the codes under FusionSF.js.
C:\Program Files\Autodesk\mapguide\www\fusion\lib\
C:\Program Files\Autodesk\mapguide\www\fusion\templates\mapguide\THE
TEMPLATE FOLDER YOU USE\index.html --> Make sure you're using FusionSF.js
here.
td.innerHTML = this.htmlDecode(layerObj.getElementValue(featureIdx, i));
You will have to htmlDecode your html stored on mssql to be able to see them
properly.
htmlDecode: function (str) {
var s = "";
if (str.length == 0) return "";
s = str.replace(/>/g, ">");
s = s.replace(/</g, "<");
s = s.replace(/ /g, " ");
s = s.replace(/'/g, "\'");
s = s.replace(/"/g, "\"");
s = s.replace(/<br>/g, "\n");
return s;
},
renderFeature: function () {
.....................
td.innerHTML = this.htmlDecode(layerObj.getElementValue(featureIdx, i));
.....................
}
});
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/SQL-html-display-problem-in-properties-pane-tp5275856p5278726.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list