[mochikit] Re: Django doXHR Headers and Guidance

2008-05-13 Thread Szaijan
Thanks Bob, the combination of using MochiKit's eval and the correct name for responseText (as opposed to response_text) fixed the issue. Here's the final code, as a working example of a MochiKit AJAX fn calling a Django view function: selectEntity : function (entity) { try

[mochikit] Re: Django doXHR Headers and Guidance

2008-05-12 Thread Bob Ippolito
mimeType: 'application/javascript' doesn't do what you think it does, it's the overrideMimeType on the XHR. For JSON it doesn't matter since it only uses responseText, I think it's only useful for setting it to XML. I think your problem is that XMLHttpRequest has a responseText attribute, not res