emz
04-09-2007, 07:11 PM
hi there. ok i have developed several split arrays from several strings. like this
var s1=<b>page-1</b> <b>page-2</b> <b>page-3</b>;
var s2=<b>page-1</b> <b>page-2</b> <b>page-3</b>;
var s3=<b>page-1</b> <b>page-2</b> <b>page-3</b>;
var spt=new Array()
spt[0]=s1.spit(" ");
spt[1]=s2.spit(" ");
spt[2]=s3.spit(" ");
ok what i want is to search for the word page-3 in the srtings and count the number of times it has occured, put the result in a text box.(the textbox bit is easy but getting the count......)
how do i do this.pleaaaaaaaaaaaaaase! help its urgent
var s1=<b>page-1</b> <b>page-2</b> <b>page-3</b>;
var s2=<b>page-1</b> <b>page-2</b> <b>page-3</b>;
var s3=<b>page-1</b> <b>page-2</b> <b>page-3</b>;
var spt=new Array()
spt[0]=s1.spit(" ");
spt[1]=s2.spit(" ");
spt[2]=s3.spit(" ");
ok what i want is to search for the word page-3 in the srtings and count the number of times it has occured, put the result in a text box.(the textbox bit is easy but getting the count......)
how do i do this.pleaaaaaaaaaaaaaase! help its urgent