your method getSearchResults returns jsonData with structure
[[name:'some name', latitude: '1.2345', longitude: '2.0988']]
later you put the parsed data to the variable "result" and later you create the output string with the undeclared variable "activeCategories".
nevertheless thanks for the posts. Very simple but important to undrstand.
Ashraf Gheith - 2015-06-08 07:03:27 - In reply to message 1 from juan carlos
Thank you for your note, It seems I lost track somewhere.
I will put a demo in the end of this week, I will post a whole class with examples for both articles. That way you can download a working example, I will fix these errors also.