Giter VIP home page Giter VIP logo

jquery-glob's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jquery-glob's Issues

Globalization is not defined

No matter how I try I can't get globalization to work. I get the following error message in firebug:
Globalization is not defined
[Break on this error] })(Globalization);

And herre is the code:
<script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="/Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="/Scripts/jquery.glob.js" type="text/javascript"></script>
<script src="/Scripts/globinfo/Globalization.sv-SE.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$.culture = jQuery.cultures["sv-SE"];
$.preferCulture("sv-SE");
alert($.culture.name);
});
</script>

Oh, and the culture alerted is en for some strange reason. Must be some strange issue because the browser is sv-SE :(

jquery.validation - jquery.glob

Hi,

jQuery.Validation have function format which is on jQuery context same as Globalization plugin format. May be functions need to be covered into namespace.

problem with huge amounts

Hi!

First of all i am thankful for this nice plug-in but i found a problem within.

Problem is when i type in e.g.:
12.123.123.123.123.123.123,123123123

after the values gets saved to the server and read again the value becomes:
12.123.123.123.123.120.000,00

Now i don't know is this issue within plug-in or JS itself because float number has limitation.

Thanks in advance!

Danijel.

Ui DatePicker Patchad error

Hello,

I active plugin in an text input with this:

//Seta valor e ativa DatePicker
$('#' + colDefinition.Id).val(theValue)
.datepicker({
changeMonth: true,
changeYear: true
});

and activated the plugin correctly.

When I type something in input i receive the follow message:

Line: 972
Error: Object expected

Debugging the plugin the error is on:
/* Extract all possible characters from the date format. */
_possibleChars: function(culture, format) {
// expand single digit formats, then escape regular expression characters.
format = expandFormat( culture.calendar, format );

Apparently the "expandFormat" function does not exist, because it protected in the globalization plugin namespace

I put the "expandFormat" function out the namespace and I receive another error, saying "culture.calendar is undefined".

So I change the activation to:
//Seta valor e ativa DatePicker
$('#' + colDefinition.Id).val(theValue)
.datepicker({
culture: $.culture,
changeMonth: true,
changeYear: true
});

With this alterations I get no error messages anymore, but I can not type anything in textbox

$.localize doesn't work without culture

For example, this script fails:

$.culture = $.cultures.ru;
$.localize('hello', 'ru', 'world');
$.localize('hello')

TypeError: culture is undefined { message="culture is undefined"}

$.format(Infinity, 'n0', 'nl-NL') yields "In.fin.ity"

$.format formats Infinity in a very peculiar way. I haven't checked it in other cultures, but I suspect $.format(Infinity, 'n0', 'en-GB') would yield "In.fin.ity".

Although I don't think a lot of people will have to deal with values as Inifinity or -Inifinity (which also yields "In.fin.ity"), this is still a bug.

More erroneous behavior:
> $.format(-Infinity, 'n2')
"In.fin.ity,00"

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.