views:

23

answers:

1

When call to this ajax function is repeated a second time, response is appended (not replaced), to info id. This occurs both when I use innerHTML and XUI shortcut function. Code works properly on IE and Mozilla desktop.

 function ajax_call()
 {
    var full_date = document.getElementById('from_date').value;             
    x$('#status').xhr('myPgm.pgm?userid=/%userid%/&calDate=' +full_date,
    function(){                 
        //document.getElementById('info').innerHTML = this.responseText;
        x$('#info').html(this.responseText);                
     }
   ); 
}
A: 

What does ajax call return? Is that doubled up?

naimer
robert