D
dennishancy
Trying to debug someone else's javascript code. There is a line that
looks like this:
req = req.substring(req.length-2, req.length);
I'm guessing that the above line won't do that, and they want to change
it to
req = req.substring(req.length-1, 2);
In other words, the parameters are starting position, and length. Is
that correct?
Dennis Hancy
Eaton Corporation
Cleveland, OH
looks like this:
req = req.substring(req.length-2, req.length);
two characters of the string "req".From what I can gather in their comments, they want to capture the last
I'm guessing that the above line won't do that, and they want to change
it to
req = req.substring(req.length-1, 2);
In other words, the parameters are starting position, and length. Is
that correct?
Dennis Hancy
Eaton Corporation
Cleveland, OH