I am unable to find out how to set my ajax call to behave differently if the call returns "querynotfound". How can I set a conditional to catch this particular error? I've tried a few things, but I am having a hard time writing a conditional that responds correctly.
Aaron, did you ever figure this out? I'm learning jQuery, and I'm using a getJSON call... I can use valid results with dot notation (ie, result.current_observation.weather), but the way the JSON is returned if there's an error, I can't access the error with result.error... it appears to actually be a level higher in the response.
I've been searching Google, with no luck so far. Gonna try a few more hours of searching, might have to try some different logic, but I'd sure like to know the proper way to grab that error code.