Git Product home page Git Product logo

Comments (5)

danro avatar danro commented on June 2, 2024

I fixed the Ender version for you: http://jsfiddle.net/zY2Ur/3/

You have to manually add &callback=? to the end of your query string and change the type to jsonp. The reason the jQuery version works is because they added code to automatically insert the jsonp stuff.

from reqwest.

Calvein avatar Calvein commented on June 2, 2024

I have watched the jQuery sources but I hadn't seen that, many thanks !

from reqwest.

ded avatar ded commented on June 2, 2024

Perhaps thats something we can add

from reqwest.

rvagg avatar rvagg commented on June 2, 2024

PR 53 should add callback=? if it's not there: https://github.com/ded/reqwest/pull/53/files#L3R77
See a bunch of tests with flexible URLs, including no explicit 'callback': https://github.com/ded/reqwest/pull/53/files#L1R83
Should be pretty similar to jQuery except using type: 'jsonp' rather than dataType: 'jsonp'. I haven't tested with that YQL example but I don't see a reason it wouldn't work with PR 53.

from reqwest.

rvagg avatar rvagg commented on June 2, 2024

sorry, I see the original jsfiddle was for dataType: 'json' not jsonp. Anyway, PR53 helps a bit by making the only adjustment required for now just changing to dataType: 'jsonp'.

from reqwest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.