I am not sure where this comes from.
I am trying to debug my app in Firebug and I see the file I am working on does not look the same in FireBug.
Here is my code:
Instead of the hightlighted code above, I just get this:
I cannot find any reference to document.getOk on the net.
Any suggestions or ideas would be appreciated. The problem for me although the code still executes all the lines below no longer match the line #s of the source code, so it is hard to set a breakpoint.
I am trying to debug my app in Firebug and I see the file I am working on does not look the same in FireBug.
Here is my code:
Code:
function showHideScratchPad(cLeft,cTop,cHeight,cWidth,cBgColor,cBstyle,cBwidth,cBcolor)
{
if ( document.getElementById("scratchPad").style.visibility == "hidden" ) {
.... A bunch of setup code ......
}else{ //hide if visible
[B]document.getElementById("scratchPad").style.visibility = "hidden";
document.getElementById("scratchPad").style.left = "0px";
document.getElementById("scratchPad").style.top = "0px";
document.getElementById("scratchPad").style.height = "0px";
document.getElementById("scratchPad").style.width = "0px";
// remove existing rows, if any
while (document.getElementById("sPadData").rows.length > 0)
{
document.getElementById("sPadData").deleteRow(0);
}[/B]
}
}
Code:
function showHideScratchPad(cLeft,cTop,cHeight,cWidth,cBgColor,cBstyle,cBwidth,cBcolor)
{
if ( document.getElementById("scratchPad").style.visibility == "hidden" ) {
.... A bunch of setup code ......
}else{ //hide if visible
[B] document.getOk = true
[/B] }
}
Any suggestions or ideas would be appreciated. The problem for me although the code still executes all the lines below no longer match the line #s of the source code, so it is hard to set a breakpoint.
Comment