function checkmembercode()
{
    var username = window.document.getElementById("txtID").value;
    AjaxMethod.FindPwdCheckMembercode(username,get_checkmembercode_callback);
}
function get_checkmembercode_callback(response)
{
    if(response.value == true)
   {
window.document.getElementById('lbError').innerText = '';
    }
    else
    {
window.document.getElementById('lbError').innerText = "请重新输入";
    }
}我想在他进行数据验证的时候,显示一个类试:'数据验证中.......'
请问应该如何做呢?谢谢!!!

解决方案 »

  1.   

    用setInterval来检测一个全局的js变量。
    当验证成功就改变该变量的值。
    然后就改变界面
      

  2.   

    function checkmembercode()
    {
    window.document.getElementById('lbError').innerText = '数据验证中.......';

        var username = window.document.getElementById("txtID").value;
        AjaxMethod.FindPwdCheckMembercode(username,get_checkmembercode_callback);
    }
    function get_checkmembercode_callback(response)
    {
        if(response.value == true)
       {
    window.document.getElementById('lbError').innerText = '';
        }
        else
        {
    window.document.getElementById('lbError').innerText = "请重新输入";
        }
    }
      

  3.   

    AjaxMethod.onLoading = function(b) {
    if (b)
    {
    window.document.getElementById('lbError').innerText
    }
    }
      

  4.   

    AjaxMethod.onLoading = function(b) {
    if (b)
    {
    window.document.getElementById('lbError').innerText='数据验证中.......';
    }
    }