I used the "Build Application from Database" and have everything 
going great. However, I added the capability to send two parameters 
to do some security checking in the initial HTTPService send.

Now, when either of those two params fail the check, I am returning 
an error in the $toret array:

$toret = array(
  "data" => array("error" => "Team ID or PIN is incorrect."),
  "metadata" => array()
);

Now, when this is processed in the resultHandler in the UI, I am
wanting to setFocus back to the entry control:

public function resultHandler(e:ResultEvent):void
{
  // deserialize sets the isError to true
  // if (obj.data.elements("error").length() > 0)
  var topass:* = deserialize(e.result, e);
  if (topass.isError) {
    teamID.setFocus();
  } else {
    e.token.handler.call(null, topass);
  }
}

But, I still get a wait cursor and "Transfering data from..." in the
status bar.

How do I prevent those from happening?


Reply via email to