Hi,
I tried the same code with some static values and got the list of all the values within the variable 'a' . Result is A,B,C with just one alert i.e. alert(all[0]) results the above values.
Could you print out the length of the service name that you captured in the code? There seems to be some code mismatch here.
<script>
var a = ["A","B","C"];
var all = new Array();
var aLen = a.length;
for(i=0;i<=aLen;i++)
{
all[i]=a;
a++;
}
alert(all[0]);
//alert(aLen);
//alert(all[2]);
</script>