how to get additional response in ajax?

Posted by udaya on Stack Overflow See other posts from Stack Overflow or by udaya
Published on 2010-06-14T05:49:27Z Indexed on 2010/06/14 5:52 UTC
Read the original article Hit count: 291

Filed under:
|

Hi I am using ajax to showing the error message ...I am getting the values in success: function(msgqq) This is my ajax if want to get another response then how to get ex: I want

success: function(msgqq)

and

success: function(msg)

This is my ajax

function UserNameAvailablity(inp)
{

$.ajax({
   type: "GET",
   url: "<?=base_url()?>/system/application/views/ssitAjax.php",
    cache: false,
   data: "txtUserName="+inp,
   success: function(msgqq){
    document.getElementById('showErrmessage').innerHTML=msgqq;
      $("#showErrmessage").html(msgqq);
       if(txtUserName.value =="")
       {
         document.getElementById('txtUserName').focus();
         document.getElementById('txtUserName').value="";
       }

   }
 });
}

© Stack Overflow or respective owner

Related posts about php

Related posts about AJAX