Hello
i've rewrote this code over but i can't get it to work (still), i have a function with arguments likes this...
function getdata(tt,num){
var s=tt+num;
alert(s); //for testing // and works fine up to this point.
var listdata= s.split("^"); // <-- something wrong here
for some reason s doesn't equal what it's meant to.
the function is call by onclicks .. onclick=getdata("data","1");
also data1 is in a js file as
var data1="info^info";
do i have to use the toString() on it ?
any help would be good,
thanks
i've rewrote this code over but i can't get it to work (still), i have a function with arguments likes this...
function getdata(tt,num){
var s=tt+num;
alert(s); //for testing // and works fine up to this point.
var listdata= s.split("^"); // <-- something wrong here
for some reason s doesn't equal what it's meant to.
the function is call by onclicks .. onclick=getdata("data","1");
also data1 is in a js file as
var data1="info^info";
do i have to use the toString() on it ?
any help would be good,
thanks