jquery-globalize

MVC 5, globalize, validate german date: How to bundle the js-scripts?

女生的网名这么多〃 提交于 2019-12-12 04:14:35
问题 In the answer to this question (MVC 5 - can not get globalisation running) I solve the problem with a bunch of "<sript src="..." declarations and some js. What I not managed: I want to bundle the scripts. If I try it like this (excerpt from bundleConfig.cs): bundles.Add(new ScriptBundle("~/bundles/jqueryvalDe").Include( "~/Scripts/jquery.validate.js", "~/Scripts/jquery.validate.unobtrusive.js", "~/Scripts/cldr.js", "~/Scripts/cldr/event.js", "~/Scripts/cldr/supplemental.js", "~/Scripts/cldr

globalize.js: dynamic loading

你离开我真会死。 提交于 2019-12-11 23:49:29
问题 I am trying to the example for plain JS of the gloablize (https://github.com/jquery/globalize) running in an advanced way based on https://github.com/jquery/globalize/blob/master/doc/cldr.md. Therefore I created a loader script to load all dependencies: var url = new URL(window.location.href); //STATIC_URL: global variable from base.html $.when( $.getScript( url.origin + STATIC_URL + "js/globalize2/cldrjs/cldr.js" ), $.getScript( url.origin + STATIC_URL + "js/globalize2/cldrjs/cldr/event.js"

Jquery Globalize setup using plain javascript - uncaught error

混江龙づ霸主 提交于 2019-12-04 04:05:20
问题 I am trying to setup jquery globalize using the js/json setup suggested (for date module), using a javascript example suggested here. In this code I am trying to set it up and the use it to format the jquery-ui datepicker: (function () { $(function () { $.when( $.getJSON("/Scripts/cldr/cldr-json/cldr-core-master/supplemental/likelySubtags.json"), $.getJSON("/Scripts/cldr/cldr-json/cldr-numbers-modern-master/main/en/numbers.json"), $.getJSON("/Scripts/cldr/cldr-json/cldr-core-master

MVC 5 - can not get globalisation running

人盡茶涼 提交于 2019-12-02 17:52:29
问题 I want to add globalization because the site asks the user for a date. And my german user want to type "31.12.1966" and not "1966-12-31". So I add the nuget-Packages "jQuery.Validation.Globalize" and "jquery-globalize" to the project. Now I am not able to configure my BundleConfig! From my research I know, that I Need globalize.js and some other files. So I try to make a bündle: bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new

Using Jquery Globalize with MVC 5

一世执手 提交于 2019-12-01 11:07:41
I am trying to use the MVC unobstrusive validation with jquery globalize plugin in MVC5 (in conjunction with the package jquery-validate-globalize ). For learning purposes I started a demo project as per here , but it fails to run with globalize (it works on default Microsoft unobstrusive validation). The model is very simple: public class GlobalizeModel { [Range(10.5D, 20.3D)] public decimal Double { get; set; } [Required] public DateTime? DateTime { get; set; } } I try to initiate Globalize as follows at the bottom of the _Layout page (the view is minimal with 2 input only): (I get list of