function butDispAddress_OnClick() { Service.GetAddressByPostalCode($get('txtPostalCode').value, OnSucceeded); return true; } function OnSucceeded(value) { $get('txtPostalCode').value = value; }