My code is like this:
System | On Start of Layout: AJAX - Request "http://api.ipinfodb.com/v3/ip-city/?key=(my api key)" (tag "Location")
AJAX | On "Location" Progress : Text | Set text to "Working"
AJAX | On "Location" Error : Text | Set text to "Error"
AJAX | On "Location" Completed: Text | Set text to "Completed"
this always returns "Error"
according to the manual if I add "Access-Control-Allow-Origin: *" then it is supposed to allow cross-domain requests, but I can't seem to make it work, it just keeps returning "Error" in my Text field...