Hello,
I need help...
i want to access the array which will come from xmlHttp.responseText for adding the options in list box.
i have echo the array.
like echo $arr;
now i want to access that responseText for adding the options...
like...
JS code
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
{
var arrServerList=new Array();
arrServerList=xmlHttp.responseText;
for (var i=0; i < arrServerList.length;++i){
addOption(document.frm_ftpConnecton.selServerList, arrServerList[0][i], arrServerList[0][i]);
}
}
}
HTML code
<tr>
<td colspan="2" width="30"><select id="selServerList" size="5" name="selServerList">
</select>
</td>
</tr>
But it gives undefined output