other than that. as the link shows, the code works, given that the data is in the format that the code assumes it is. try logging the data to console or inspecting the response immediately. if you are still having problems, what error message are you getting when you are running the alert? or is the alert not running at all? if there is a problem in your javascript elsewhere, that might prevent this