Dustin Diaz

Results 118 comments of Dustin Diaz

but yeah, you're right on that... jsonp requests aren't XHR objects, which of course don't have abort methods... so yeah we'll have to fix that

what if the global filter gave you a URL? You could use it like this... ``` js $.ajaxSetup({ dataFilter: function (response, type, url) { if (url.match(/^\/api\//)) return someThingCustom(response) return response...

@paztis would that work for you if it was implemented?

i see. we should add a test for this and then be sure to edit the appropriate file `src/reqwest`

this should be allowed. it adds the data as a query string instead of a `POST` body

that's odd. our tests are passing just fine. will have a look

have a look at our tests here https://github.com/ded/reqwest/blob/master/tests/tests.js there's quite a few for `JSONP` so make sure you're implementing it correctly

ok i can reproduce. not sure how this is became broken. in the meantime you can do this: ``` js ajax({ type: 'jsonp', url: 'http://urls.api.twitter.com/1/urls/count.json?url=http://google.com&callback=foo', jsonpCallback: 'foo' }) function foo...

the link you posted isn't what i wrote. here is an end of end example: ``` html test reqwest({ type: 'jsonp', url: 'http://urls.api.twitter.com/1/urls/count.json?url=http://google.com&callback=foo', jsonpCallback: 'foo' }) function foo (data) {...

ugh. honestly i'm about to fully deprecate `