document.getOk = true

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Claus Mygind
    Contributor
    • Mar 2008
    • 571

    document.getOk = true

    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:
    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]
        }
    }
    Instead of the hightlighted code above, I just get this:
    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]    }
    }
    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.
  • Claus Mygind
    Contributor
    • Mar 2008
    • 571

    #2
    While I did not figure out the specific problem, I did upgrade FF from 3.6 to 5.01 and things are back in order.

    Comment

    Working...