Not sure how old this content is, but I'm experiencing an issue.
I recieve an error message telling me:
Server was unable to process request. ---> Name cannot begin with the '<' character, hexadecimal value 0x3C.
Here is my code:
function spellChecker(str) {
var strTemp = str;
var aryChunks = [];
var aryChunks2 = [];
var intArrayLength = 0;
var spellResults = '';
strTemp = str.replace(/\r?\n|\r/g, ' ');
aryChunks = strTemp.split(" ");
intArrayLength = aryChunks.length;
for(var i = 0; i < intArrayLength; i++){
if(aryChunks[i] != '') {
aryChunks2.push("<string>" + aryChunks[i] + "</string>");
}
}
$().SPServices({
operation: "SpellCheck",
chunksToSpell: aryChunks2,
declaredLanguage: 1033,
useLad: false,
completefunc: function(xData, Status){
alert(xData.responseText);
}
});
}
↧