hi,
I am posting below my javascript code,
function displaynames(name)
{
var names = name.split(",");
var t = setTimeout("shownames('" + names + "')",5000);
}
function shownames(names)
{
var i=0;
while(i<names.length)
{
alert(names[i]);
i=i+1;
}
Initially displaynames gets called, then after the split, it calls the shownames function. But when i try to display the values through the while loop i get "undefined" instead of the real values.
Am able to display the values in the displaynames function.
any idea as to whats going wrong here?