Below is my piece of code. My issue is the function on success never gets called. It always throws the error section.
$.ajax({ url: 'http://localhost/zd/get_list', data: 'term=' + medical_provider, dataType: 'json', type: 'GET', success: function(data){ alert('success'); }, error: function(jqXHR, textStatus, errorThrown){ alert(jqXHR); } }); when i alert jqXHR is get [object Object] and when I alert textStatus I get "error" and when I alert errorThrown I get a blank error message. I am using jquery 1.11.0. I never get the success alert. Your help is greatly appreciated.
Also the the data returned in json is properly validated. I did a test on jsonlint.