On 29 Mar., 02:46, Mike Alsup <mal...@gmail.com> wrote:
> Well there must be more to the story than what you're telling us.  The
> code you've shown above looks fine.  Perhaps there is a problem with
> the json response.

Actually that was excactly the problem. It would be good to get some
kind of notification though. Perhaps a javascript error in the browser
console or a "failure" function to complement the "success" one.

> > Oh, and by the way. Is there any way to get access to the request in
> > the 'success' function - to obtain status codes, content-type header
> > etc.?
>
> No, not in the success function.  But you can use the 'complete'
> function to get access to the xhr.
>
> complete: function(xhr, status) {
>   ...
>
> }

Cool, you should mention that on the website :)

Oh wait - this would kind of be the "failure" function mentioned
above. I actually get "parsererror" as statustext in the complete
function. Just didn't know about it :)

Thanks,

-dennis

Reply via email to