[thelist] forgotten win2000 logon

Kinjal Dixit wapindia at crosswinds.net
Thu Oct 4 04:14:54 CDT 2001


sorry... this is more about the tip than your problem.. i would further
suggest an inclusion of a global debugFlag variable that allows turning
on/off debug messages. something like this

// change this to false to turn off debugging in the entire application
boolean debugFlag=true
:
:
var value=100
if(debugFlag) {
    value=prompt("Set the [value] parameter for the loop before [foo]",
value)
}

in very complicated javascript applications, it would be useful if i could
document.write(value) to another window... so that i could trace through the
program without bothersome alert boxes... anyone have ideas on this?

regards

>
> <tip type=JavaScript>
> During debugging it's sometimes handy to place "alert()" at strategic
> places, to pop up a variables value.
> If you want to be able to cut'n'paste, or change this variables value, use
a
> prompt, like this:
>
> var value=100
> value=prompt(" ",value)
>
> This will pop up an input box with 100 in it.
> You can click "ok", to accept it, change the value and click ok to change
> it, or click "cancel" to set it to null.
> </tip>
>






More information about the thelist mailing list