I got something diferent now.
I created a test form with this configuration:
[attachment=0]joomla05.JPG[/attachment]
[attachment=1]joomla06.JPG[/attachment]
[attachment=2]joomla07.JPG[/attachment]
<?php
$search = JRequest::getString('natureza', '', 'get');
$return = "";
if($search!="" && strlen($search)>2){
$lstNatureza = array();
$sql = "select CODTB1FAT as id, DESCRICAO as value from TTB1 where LEN(CODTB1FAT) = 8 and INATIVO = 0 and TTB1.DESCRICAO like '%".$search."%'";
$conn = mssql_connect("myServer", "myUser", "myPass");
$bco = mssql_select_db("myDB", $conn);
$result = mssql_query($sql,$conn);
while($row=mssql_fetch_array($result,MSSQL_ASSOC)){
$row["value"] = utf8_encode($row["value"]);
$lstNatureza[] = $row;
}
$return = json_encode($lstNatureza);
}
//return json_encode(array("Option1","Option2","Option3"));
echo $return;
?>
With this new cenario, i have the situation on browser. No more Loading Failed, but field keep spinning and no values appears:
[attachment=3]joomla08.JPG[/attachment]
[attachment=4]joomla09.JPG[/attachment]
[attachment=5]joomla10.JPG[/attachment]