View Single Post
  #6 (permalink)  
Old June 11th, 2008, 06:18 PM
Old Pedant Old Pedant is offline
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

So I have to assume that the code you showed is dummy code, just to illustrate the problem???

Because clearly if you simply changed your stateChanged code to do

function stateChanged(){
    if (xmlHttp.readyState==4){
        document.getElementById("A").innerHTML = xmlHttp.responseText;
        document.getElementById("B").innerHTML=document.ge tElementById("A").innerHTML;
    }
}

Then hopefully and presumably there's no possible way that B isn't changed to match A as soon as A changes.

So, now, I didn't actually try your code. And now I'm going to have to, aren't I?? <grin style="sickly"/>