I have a web site that has been working for years using the JS code in question. Suddenly it is malfunctioning and the problem seems to be that indexOf is returning values of -1 in place of the formerly valid values.
The actual code is:
var firstchar=decodedscorestring.indexOf("s0101");
var nextchar=decodedscorestring.indexOf("s0201");
Anyone have any ideas at all??
Thanks.
The actual code is:
var firstchar=decodedscorestring.indexOf("s0101");
var nextchar=decodedscorestring.indexOf("s0201");
Anyone have any ideas at all??
Thanks.