Hi all,
I have implemented 2 javascript methods in my project:
http://infomap.6te.net/
the methods are:
function check() and function print_().
print_() working but check() not working:
//function starts here
function check(str1Array, str2Array){
var a=0;
if(str1Array.length<str2Array.length)
resultArray=new Array[str2Array.length];
else
resultArray=new Array[str1Array.length];
var i=0;
for(i=0;i<str1Array.length;i++){
var j=0;
for(j=0;j<str2Array.length;j++){
if(str1Array[i]==str2Array[j])
{
resultArray[a++]=str1Array[i];
}
}
} resultArray1=resultArray;
alert("Please Take this Bus "+resultArray.join(", "));
}
//function ends here
the arguments for the check() is passed from print_(), and inturn
check() should update resultArray and throw an alert.
any help in this regard would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.