Posts by Waldir J. Pereira Junior • 311 points
7 posts
-
0
votes1
answer1241
viewsA: Adding the edit function in a single Form in Angularjs
John, I’ve made a few adaptations to your code and it looks like it’s working just fine. I recommend that you study more Angularjs and all its validations, because what you have done can be…
-
1
votes1
answer1359
viewsA: Security Exception Error
I don’t know if with the trust level = Medium your application will work and not even if Locaweb will agree to change this parameterization, but you can test by changing your web.config to add the…
asp.net-mvcanswered Waldir J. Pereira Junior 311 -
3
votes2
answers18294
viewsA: How to get the date right using momentjs
You need to create the Moment object with a non-local UTC date. See: var dataUtc = moment.utc("2016-07-12 17:21:40"); moment.tz(dataUtc, moment.tz.guess()).format('YYYY-MM-DD HH:mm:ss'); In your…
-
1
votes1
answer541
viewsA: Calculate the diameter of a circle to fill the rectangle according to the mouse position
I believe what you want is in the code below: Javascript: var quadrado = $("#quadrado"), circulo = $("#circulo"), offset = quadrado.offset(); $(document).on('mousemove', function(e){ var x = e.pageX…
-
3
votes1
answer44
viewsA: validating a string
I took a different approach. See if this function solves your problem: function verificaContas($contas) { $arrContas = explode(",", $contas); $sucesso = true; foreach($arrContas as $conta) { if…
phpanswered Waldir J. Pereira Junior 311 -
2
votes2
answers1238
viewsA: Menu in two CSS columns
I think you can use what’s being taught in Bootstrap Multi-column Dropdown Menu. Basically it creates some css classes (.multi-column to the ul and the .columns-2 and .columns-3 to specify the…
-
2
votes1
answer355
viewsA: Automapper and Viewmodel with equal fields
The AutoMapper works to map a single class into another single class. So, if in your Viewmodel you will have information from a group and a user, I suggest you create a class that has a reference…
asp.net-mvcanswered Waldir J. Pereira Junior 311