Hi all,

I'm encountering a weird issue I can't seem to track down any info on--
I'm building a dashboard widget for OS X and using jquery to do it;
when testing in safari, the following code returns the expected
response (alert box with some http status code, 200 or 403 in my
case):

var params = {
                action: 'authenticate',
                email: 'someval',
                password: 'someval'
}
$.ajax({
        type: 'POST',
        url: 'http://www.somesite.com/api/write',
        data: params,
        dataType: 'xml',
        contentType: 'application/x-www-form-urlencoded',
        complete: function(xhr, textStatus){
                alert(xhr.status);
        }
});

Safari seems fine and xhr.status is correct, but running this in the
Dashboard gives me textStatus == 'parsererror' and xhr.status == 0,
all the time, no matter what. I was under the impression the Dashboard
and safari/webkit are using the same engine, am I mistaken here?
Anyone else have this issue and/or know a fix?

Thanks,
Kyle

Reply via email to