"Fred Oz" <Oz****@iinet.net.auau> wrote in message
news:_H**************@news.optus.net.au...
Oxnard wrote:
function changeit(myChange)
{ //alert('here ' + myChange);
// status = myChange; document.getElementById("t1").innerHTML =
myChange; }
Perhaps you should un-comment some part of the function? Perhaps put:
document.getElementById("t1").innerHTML = myChange;
on a line by itself?
It's not good style to put multiple statements on the same line, it's
far better to put one statement per line to make the code more
readable, so your function would become (with debug comments intact):
function changeit(myChange){
//alert('here ' + myChange);
// status = myChange;
document.getElementById("t1").innerHTML = myChange;
}
Also read the thread below: "Changing <p> text on the fly".
Fred.
the text did not format quite right in OE. The statement:
document.getElementById("t1").innerHTML = myChange;
was on a line by itself.
I remove the commented out lines:
function changeit(myChange){
document.getElementById("t1").innerHTML = myChange;
}
this did not work.
If I put the line:
alert('myChange ' + myChange);
as the first line in the function I see what I am passing to the function,
however if I put it after the innerHTML line the dialog box never appears.
It seems I see an error on status message in IE but it goes by quickly. How
can I see what the error is?