Callback function on block
Try this
//the values for autcomplete

function search_city_autocomplete($text = NULL) {
$results = array();
  $results['city1'] = 'thefirstcity';
  $results['city2'] = 'thesecondcity';
  print drupal_json_encode($results);
exit();
}