for some reason, I can't get drop down fields (wich are linked to a table) populated. They are empty at the loading of the page and stuck on "searching" if I click on them. This behavoiur happens only in Linux hosting, while in Windows local machine, everything is ok.
I debugged all the code producing the call and the response, and finally I discovered through Chrome network inspector that ajax_combo.php at the very end, responses with a well formatted jSON
Code: Select all
echo json_encode(array(
'results' => $prepared_data,
'more' => (@db_num_rows($res) >= $results_per_page),
'elapsed' => round(microtime(true) - $start_ts, 3)
));
Code: Select all
{"results":[{"id":"8","text":"-- Scegli il Distretto --"},{"id":"3","text":"Distretto Centro"},{"id":"2","text":"Distretto Nord Est"},{"id":"1","text":"Distretto Nord Ovest"},{"id":"6","text":"Distretto Sardegna"},{"id":"7","text":"Distretto Sicilia"},{"id":"4","text":"Distretto Sud Est"},{"id":"5","text":"Distretto Sud Ovest"}],"more":false,"elapsed":0.109}
There is no error in the console of Chrome, neither a network one.
Could anybody point me to the right direction in order to debug and possibly solve this issue?
Best regards
Fabio Ricci