GithubHelp home page GithubHelp logo

Comments (2)

dexx0008 avatar dexx0008 commented on July 3, 2024

update: There is definitely something wrong with the implementation of solari.js

Firebug shows this 404 error when attempting to grab the json. Notice the lack of ? after provider.php before callback=… is added.

The requested URL /final/example/provider.phpcallback=jQuery203041688141632170084_1386973248944 was not found on this server.

If I add a ? to URL variable in solari.js as shown below.
var URL = "../example/provider.php?"

I get a 200 ok response for the jsonp that is returned. jsonp looks good now but solari.js fails after this though as nothing else loads.

This probably explains why another poster complained that repo didn't work unless he assigned json to a variable within solari.js with the sample data provided at the top of that .js file.

Fixed it. 2 things in solari.js
1 add ? to $.getJSON
$.getJSON(URL + "?callback=?", function(data) {

2 var timeDelta = Date.parse(next_due_row.sDate + " " + time).getTime() - new Date().getTime();
should be:
var timeDelta = Date.parse(next_due_row.sDate + " " + time).getTime() - new Date().getTime();

note the comma, firebug reported error on Date.parse…

I also now see this project was forked and that same issue was found. Please update the code for others.

This now works for me in MAMP with php creating jsonp from a php array. Thanks for publishing this solariboard for us to use.

Ryan

from solari-board.

dexx0008 avatar dexx0008 commented on July 3, 2024

oops, didn't alter line for timeDelta
it should be this (with the comma)
var timeDelta = Date.parse(next_due_row.sDate + ", " + time).getTime() - new Date().getTime();

from solari-board.

Related Issues (6)

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.