Giter Club home page Giter Club logo

Comments (3)

jheising avatar jheising commented on June 25, 2024

I'm getting a 404/notfound error on that link. Can you send me a valid one? Thanks.

from freeboard.

antonfh avatar antonfh commented on June 25, 2024

Hi sorry, yes that is on a local test (not public facing/access) basically its only an api that returns the data element (json_encoded) as {"total":"40"} , or another call returns something like {"id":"1","name":"my name","total":"1") ..... which results in same error indicating that the very first : is where a missing ; before statement must be .... how must a custom plugin/ data source be defined (I have one obviously calling these apis) which used types JSON but now I define JSONP (so not sure if a datasource which worked/works with JSON can simply just change type to JSONP (or is there some changes that must be made to handle JSONP ?

Thanks

from freeboard.

jheising avatar jheising commented on June 25, 2024

Oh, I think the problem is that your JSONP file isn't really JSONP. http://en.wikipedia.org/wiki/JSONP. JSONP is actually a script file that must be formatted like javascript and calls back the function passed in the URL. So for that example above, the file would need to look like:

jQuery20302740955555920611_1401453890633({
"total": 62
});

The main thing is that the function name changes randomly so you need to make sure your API endpoint is taking this into account when it creates the JSONP file.

from freeboard.

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.