Jquery Globalization
Asked Answered
R

1

0

I am using MVC4.0 and Jquery globalization plugin from Microsift "http://www.scottgu.com/blogposts/jQueryGlobalizationDemos.zip" which i got from "http://weblogs.asp.net/scottgu/archive/2010/06/10/jquery-globalization-plugin-from-microsoft.aspx". This plugin i am using for amount formating e.g

var result= $.format(1000, "c", "en-GB");

This plugin is working fine when i am giving reference to "glob.js" and "glob.all.js" files directly on page(View), but when i am giving reference to same files on master page its crashing in Jquery.validate.js file.

    $.each(params, function( i, n ) {
    source = source.replace( new RegExp("\\{" + i + "\\}", "g"), function() {
        return n;
    });
});

I am getting error as replace function is undefined. Please help me.

And, Where is the link for latest version of Microsoft Jquery Globalization plugin?

Thanks in Advance

Raquel answered 31/7, 2013 at 5:55 Comment(0)
B
1

The jQuery globalization plugin from Microsoft has been accepted as a offical jQuery plugin a couple of years ago (http://blog.jquery.com/2010/10/04/new-official-jquery-plugins-provide-templating-data-linking-and-globalization/)

You can find the latest version here along with examples: https://github.com/jquery/globalize.

A more complete example of your code is needed to see why you get the error you get. Try to show it on http://jsfiddle.net/ maybee?

Bailar answered 18/10, 2013 at 14:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.