Hi to all,
i've DNN 4.8.4 and after used the workaround above i found other errors regarding the emoticons, link and color function.
My solution is:
- in DNNCodeChatHelper.vb replace the double quotation mark with " in all String.Format occurrence, like this:
Dim lReplacemt As String = String.Format("<a href="{0}" target="_new">{1}</a>", DotNetNuke.Common.AddHTTP(lMatch.Groups.Item("UrlHref").Value), lMatch.Groups.Item("UrlHref").Value)
- in js/dnn.xml.jsparser.js replace the function dnn_xml.prototype.JsParser.prototype.parse with follow:
dnn_xml.prototype.JsParser.prototype.parse = function(sXml, oRoot)
{
this.pos = 0;
//this.xmlArray = sXml.split('>');
var tmpInitPos = 0;
this.xmlArray = new Array();
for(i=0;i<sXml.length;i++){
if(sXml.charAt(i) == '>' && (i<(sXml.length-1) && sXml.charAt(i+1) == '<')){
this.xmlArray.push(sXml.substring(tmpInitPos,i))
tmpInitPos = i+1;
}
}
if(this.xmlArray.length == 0)
this.xmlArray.push(sXml)
this.processXml(oRoot);
}
- always in js/dnn.xml.jsparser.js replace the function dnn_xml.prototype.JsParser.prototype.isOpenTag with follow:
dnn_xml.prototype.JsParser.prototype.isOpenTag = function()
{
var s = this.getProcessString();
if (s.substr(0, 1) == '<' && s.substr(0, 2) != '</' && s.substr(0,2) != '"<' && s.substr(0,2) != '<?')
return true;
else
return false;
}
Now the Chat module works great with Chrome too.
I hope this help! bye!
Gabriele