thoralbar
%Europe/Berlin %527 %2005, 13:39
Hello,
can anybody help me with the following problem:
i created a textfield and want to fill it with text that I get via XML, my text is important in the textfield as it should BUT some characters (and there are NO, SPECIAL characters in it) don't come through (for example, the "z" and the "v" and the ...) everything else works,
below you find the code for which the XML is loaded and the text is imported
I don't know what the problem is so if anybody does know, I'd appreciate the help
thnx
thoralbar
function showContent() {
txtField.html = true;
txtField.htmlText = "in tbegin";
var text_xml = new XML();
text_xml.ignoreWhite = true;
text_xml.load("xml/tashun.xml");
text_xml.onLoad = function(ok){
if (ok){
obj = this
FillTextArea(obj);
}else{
txtField.htmlText = "error: XML not successfully loaded";
};
};
};
function FillTextArea(Content) {
var child = Content.firstChild.firstChild;
while (child != null) {
if (child.nodeName == "titel") {
opmaakTitel(child);
} else if (child.nodeName == "paragraaf") {
opmaakParagraaf(child);
};
child = child.nextSibling;
};
};
function opmaakTitel(node) {
var tekst = node.firstChild.nodeValue;
txtField.htmlText += tekst;
};
function opmaakParagraaf(node) {
var tekst = node.firstChild.nodeValue;
txtField.htmlText += tekst;
};
can anybody help me with the following problem:
i created a textfield and want to fill it with text that I get via XML, my text is important in the textfield as it should BUT some characters (and there are NO, SPECIAL characters in it) don't come through (for example, the "z" and the "v" and the ...) everything else works,
below you find the code for which the XML is loaded and the text is imported
I don't know what the problem is so if anybody does know, I'd appreciate the help
thnx
thoralbar
function showContent() {
txtField.html = true;
txtField.htmlText = "in tbegin";
var text_xml = new XML();
text_xml.ignoreWhite = true;
text_xml.load("xml/tashun.xml");
text_xml.onLoad = function(ok){
if (ok){
obj = this
FillTextArea(obj);
}else{
txtField.htmlText = "error: XML not successfully loaded";
};
};
};
function FillTextArea(Content) {
var child = Content.firstChild.firstChild;
while (child != null) {
if (child.nodeName == "titel") {
opmaakTitel(child);
} else if (child.nodeName == "paragraaf") {
opmaakParagraaf(child);
};
child = child.nextSibling;
};
};
function opmaakTitel(node) {
var tekst = node.firstChild.nodeValue;
txtField.htmlText += tekst;
};
function opmaakParagraaf(node) {
var tekst = node.firstChild.nodeValue;
txtField.htmlText += tekst;
};