srhyne / jQuery-Parse

An AJAX wrapper for the Parse.com REST API
212 stars 31 forks source link

DELETE method not working #1

Closed reflog closed 12 years ago

reflog commented 12 years ago

Hi there. I'm testing this nice Parse wrapper you've made and it works really nice, except for the DELETE method. When I call: $.parse.delete("Package/"+oID, function(){ reload(); }); The callback is never called and after some debugging, I see that I land in this method:

function _error(jqXHR, textStatus, errorThrown){ }

With all the parameters empty.

The POST and GET methods are working very nice, so I can't seem to figure out what the problem is... Any ideas?

srhyne commented 12 years ago

Hi Eli,

Hmmm, what browser and browser version are you using for development? I think some browsers do not support PUT & DELETE. I can't quite nail down which browsers have problems. Or is it the doctype that effects it?

stackoverflow post

The _error method is just a default error catch for the $.ajax method. If the delete method doesn't work in the parse.html demo than we know that it's a browser issue.

Let me know ;)

reflog commented 12 years ago

My apologies, seems this was just my JavaScript noobness. It's all working very well. Thanks for the great component!