R
Ross
When I sometimes want to debug something on a browser without a firebug
console, I have been using a textarea to which I can print stuff.
So my HTML calls my big script file, and further down in my HTML I put
up a textarea. When a 'debug' condition in my .js is in modeOne, I
write msgs to that textarea. When it's in modeTwo, I write to the
firebug console, in modeThree no messages get written.
I'd like to have that textarea not visible in the latter two modes.
SO my html contains:
<html>
....
<script type='application/x-javascript' src='/myfiles/dowork.js'>
</script>
....
other html
....
<form name="mydebug">
DEBUG Data:
<textarea rows="40" cols="30" name="outdebg"> Debug msgs:
</textarea>
</form>
</html>
Is there some means to make that form part display conditionally? Any
suggestions for a newbie? I suppose moving it into the javascript makes
sense, where an if-statement can be used. But then how does one make a
textarea like that show up?
Thanx
Ross.
console, I have been using a textarea to which I can print stuff.
So my HTML calls my big script file, and further down in my HTML I put
up a textarea. When a 'debug' condition in my .js is in modeOne, I
write msgs to that textarea. When it's in modeTwo, I write to the
firebug console, in modeThree no messages get written.
I'd like to have that textarea not visible in the latter two modes.
SO my html contains:
<html>
....
<script type='application/x-javascript' src='/myfiles/dowork.js'>
</script>
....
other html
....
<form name="mydebug">
DEBUG Data:
<textarea rows="40" cols="30" name="outdebg"> Debug msgs:
</textarea>
</form>
</html>
Is there some means to make that form part display conditionally? Any
suggestions for a newbie? I suppose moving it into the javascript makes
sense, where an if-statement can be used. But then how does one make a
textarea like that show up?
Thanx
Ross.