title: Appcelerator change button text
body: <p>Greetings,</p>
  
  <p>I'm trying to change the text on a button in appcelerator.</p>
  
  <p>Now I can change it once, but I can't change the text back once some event occurs.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>var login=Titanium.UI.createButton({
     title:'Login',
       width:250,
       top:330
  });
  win.add(login);
  var xhr=Titanium.Network.createHTTPClient();
  login.addEventListener('click', function(e){
       login.title="Please wait...";   //this line works fine
       xhr.onload=function(){
              login.title="Login";   //this line doesn't work
              if(uname.hasText){
                   uname.value=this.responseText;
              }
       };
       xhr.onerror=function(){
              login.title="Login";   //this line doesn't work
              alertDialog.show();
       };
       xhr.open("POST","http://www.asdf.com/ajax/login.php");
       if(uname.hasText &amp;&amp; pword.hasText){
              xhr.send({"uname":uname.value,"pword":pword.value});
       }else{
              alertDialog.show();
       }
  });
  </code></pre>
  
  <p>I simply don't know what to do at this point!</p>
  
  <p>Any insight greatly appreciated.</p>
  
  <p>Many thanks in advance,</p>