"Fred Oz" <Oz****@iinet.n et.auau> wrote in message
news:_H******** ******@news.opt us.net.au...
Oxnard wrote:
function changeit(myChan ge)
{ //alert('here ' + myChange);
// status = myChange; document.getEle mentById("t1"). innerHTML =
myChange; }
Perhaps you should un-comment some part of the function? Perhaps put:
document.getEle mentById("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(myChan ge){
//alert('here ' + myChange);
// status = myChange;
document.getEle mentById("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.getEle mentById("t1"). innerHTML = myChange;
was on a line by itself.
I remove the commented out lines:
function changeit(myChan ge){
document.getEle mentById("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?