-
XML text question?
I am posting text from an XML doc to many text fields I have on a page... and this is working fine, but I have one text field that needs to repopulated if a GUI button is pushed. The function the button is calling is firing correctlly but the text field is displaying 'Undifined' - and I have checked the XML path!
here is the function:
function translate()
{
ccText.cc_txt._x = resetPos;
ccText.cc_txt.htmlText = allXML.childNodes[0].childNodes[2].firstChild.nodeValue;
scroller();
}
It does work if I change the function to this:
function translate()
{
ccText.cc_txt._x = resetPos;
ccText.cc_txt.htmlText = "blah blah";
scroller();
}
-
FK'n_dog
what is the result of a trace ?
function translate(){
trace(allXML.childNodes[0].childNodes[2].firstChild.nodeValue); // undefined ??
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|