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

you just put it in document.write();...and see what will happen...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.