BUG? really strange problem in http server
Posted: Thu Jan 01, 2009 7:28 pm
I know this is extremely strange. But my javascript code is modified if I get a web page from sb72ex.
The webpage that is used in the board contains the following line:
for (var i=0; i<16; i++)
{
var divName="#divfaultbit"+i;
mask=1 << i;
... etc ...
This code was test on local computer and was working perfectly. When used in the device was not working. We detected that the code that was send was exactly the same, but a variable was in uppercase
for (var i=0; i<16; i++)
{
var divName="#divfaultbit"+i;
mask=1 << I;
... etc ...
Note how i was turned into I. This obviously breaks the javascript code. We decided to change i into zz and now the code is working correctly. Any clue why is this happening?
I am afraid this may break any other javascript code we include there...
Thanks
The webpage that is used in the board contains the following line:
for (var i=0; i<16; i++)
{
var divName="#divfaultbit"+i;
mask=1 << i;
... etc ...
This code was test on local computer and was working perfectly. When used in the device was not working. We detected that the code that was send was exactly the same, but a variable was in uppercase
for (var i=0; i<16; i++)
{
var divName="#divfaultbit"+i;
mask=1 << I;
... etc ...
Note how i was turned into I. This obviously breaks the javascript code. We decided to change i into zz and now the code is working correctly. Any clue why is this happening?
I am afraid this may break any other javascript code we include there...
Thanks