GithubHelp home page GithubHelp logo

balanced.js is broken about balanced-js HOT 6 CLOSED

balanced avatar balanced commented on June 20, 2024
balanced.js is broken

from balanced-js.

Comments (6)

mjallday avatar mjallday commented on June 20, 2024

How were you using it? This file is in production for many marketplaces so I suspect this may have been misconfiguration on your end. Can you provide a reproducible example?

from balanced-js.

vinkobuble avatar vinkobuble commented on June 20, 2024

I 've just copied balanced.js from github to my project, and it did not work. Where should 'global' be defined at?

from balanced-js.

mjallday avatar mjallday commented on June 20, 2024

Global is defined by the browser. If you're copying it into your project it sounds like you're doing server side work. balanced.js is only for client side work and should never be hosted by you, only Balanced.

Check out balanced-node if you're trying to do something on the server.

I'm closing this issue since I suspect this is just balanced.js being misused. Reopen if I'm wrong :)

from balanced-js.

vinkobuble avatar vinkobuble commented on June 20, 2024

'Included in my project' means I downloaded it from balanced-js github repo, placed on server side to be served to web browser clients. Specifically I develop using Chrome browser. I still cannot use balanced.js in Chrome the way it is.

from balanced-js.

mjallday avatar mjallday commented on June 20, 2024

@vinkobuble you're still not giving me enough to reproduce and fix this error.

I'm using Chrome 33 and if I go to http://jsfiddle.net/an5Cz/35/ it works as I'd expect it to. Does that page work for you? All this example is doing is including https://js.balancedpayments.com/1.1/balanced.js and then calling the tokenize method on it.

Let me know if that works for you. If it doesn't then we can trouble shoot that, if it does then we need to find the difference between that example and your code. You can help by posting a gist of the rendered code so we can see what it looks like. How are you including balanced.js in your page. As I mentioned before I recommend you serve it from us, rather than serving it from your own source.

from balanced-js.

vinkobuble avatar vinkobuble commented on June 20, 2024

Once I switched to this balanced.js it works. Thanks for help.

from balanced-js.

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.