GithubHelp home page GithubHelp logo

coderspress / jquery-currency Goto Github PK

View Code? Open in Web Editor NEW
81.0 5.0 52.0 202 KB

Simple, unobtrusive currency converting and formatting

License: MIT License

PHP 2.73% JavaScript 53.08% CSS 25.93% HTML 18.26%

jquery-currency's People

Contributors

coderspress avatar gilbitron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jquery-currency's Issues

crashed after server move

displaying error Parse error: syntax error, unexpected '<' in /home2/conc#####/public_html/convert.php(40) : eval()'d code on line 1

was fine before move but i can not see the error

Displaying &pound; not £ and returning 0

Hi gilbitron,

I am trying to use your neat plugin on a Wordpress site, but am only getting £0.00 as a result. I don't mind turning of the prefix if the parsing is an issue, but I would like to figure out how to get the converter working!

Here is the page: http://indigobrazilianportuguese.com/test-3/?val=200

And the code (identical for each input, the difference between each input being how the values are originally set to 200:

$('#input_6_2').currency({ region: 'GBP', convertFrom: 'USD', convertLocation: 'http://indigobrazilianportuguese.com/2012/wp-content/themes/indigo/js/currency/convert.php' });
$('#input_6_4').currency({ region: 'GBP', convertFrom: 'USD', convertLocation: 'http://indigobrazilianportuguese.com/2012/wp-content/themes/indigo/js/currency/convert.php'});
$('#input_6_5').currency({ region: 'GBP', convertFrom: 'USD', convertLocation: 'http://indigobrazilianportuguese.com/2012/wp-content/themes/indigo/js/currency/convert.php'});

Hoping you can help!

Thanks,
Caroline

Non-JQuery solution

since you've figured out all the logic needed to make this happen, it would be really much more useful to have a javascript function that simply received a value and converted it:

FormatCurrency("2300"); // $2,300.00

...rather than having to have an object on the page to do it. keeping your current implementation is, of course, very useful but in many other cases I may not have an element on the page I want to convert, I just have a value.

in other words, exposing the helper methods would give the module much greater functionality.

my two pence.

hidePostfix not working

Hello,
I try
.currency({ region: 'EUR', thousands: '', decimal: ',', decimals: 2, hidePrefix: true, hidePostfix: false });

But it doesnt show PostFix

Is it a error ?

Eric

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.