开发者

Problem with javascript in Blackberry (OS 4.6) native browser

开发者 https://www.devze.com 2023-01-18 10:58 出处:网络
When call to this ajax function is repeated a second time, response is appended (not replaced), to info id.

When call to this ajax function is repeated a second time, response is appended (not replaced), to info id. This occu开发者_Python百科rs 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);                
     }
   ); 
}


What does ajax call return? Is that doubled up?

0

精彩评论

暂无评论...
验证码 换一张
取 消