kurinosuke (156) [Avatar] Offline
In the DoubleCombo sample, I get an error when getting the response :

function FillDropDown(){
var xmlDoc = this.req.responseXML.documentElement;
var xSel = xmlDoc.getElementsByTagName('selectElement')[0];
var strFName = xSel.childNodes[0].firstChild.nodeValue;

Error : xSel.childNodes[0].firstChild has no properties

I've tried a few alert :
alert(xSel.childNodes[0].firstChild); // null
alert(xSel.childNodes[0]); // [object Text]

I've also tried to output the XML and I get smiliesorry about the messy format)
<?xml version="1.0" ?><selectChoice> <selectElement> <formName>Form1</formName> <formElem>ddlTerritories</formElem> </selectElement> <entry> <optionText>Select a territory</optionText> <optionValue>-1</optionValue> </entry> <entry> <optionText>Bedford</optionText> <optionValue>Bedford</optionValue> </entry> <entry> <optionText>Boston</optionText> <optionValue>Boston</optionValue> </entry></selectChoice>

What could be the problem ?
kurinosuke (156) [Avatar] Offline
Re: DoubleCombo. firstChild has no props
Ok, beginner's miss. I removed all the extra spaces between XML tags, and it worked.