Posts by akira-ito • 371 points
7 posts
-
5
votes5
answers3991
viewsA: Update list after push Angularjs
Problem with syncronism. I solved it that way: $scope.novaMensagem = function(message) { message.user = $scope.usuarioLogado.login; message.destino = $scope.target;…
-
0
votes3
answers248
viewsA: How to take the value of an inputtext and generate an IMG URL
First, give an ID to the image (e.g., photo): <img src="https://localhost/sig/_downloadFoto?parametro2=Alunos/**505050**.jpg" alt="Foto perfil" height="42" width="42" id="foto" /> Create a…
-
2
votes3
answers2079
viewsA: Array value with highest occurrence
I thought a logic that you could store the counters in an Object and using only the foreach of the Array. As it turned out: function maior(arr){ if (!arr) return null; var b={}, g = arr[0];…
javascriptanswered akira-ito 371 -
1
votes2
answers159
views -
0
votes2
answers87
viewsA: Help with concatenating
I honestly don’t understand. You want the username to have a value of a variable? If that’s what you have to do. var akira = "texto" example; var userstocreate = [ { username: akira, password:…
-
2
votes2
answers216
viewsA: jquery mascara formulario
When you do $('.cpfcnpj').val(), it brings the whole text in full, including the dots and dashes. That is, it will count the wrong size. Here is the correct way to do this and also how it is…
-
4
votes1
answer389
viewsQ: What is the purpose Message Queue MQ
I’ve heard a lot about Messagequeue, and I’ve never used it in practice. But before that, I would like to know what is the need and your purpose of using an MQ. Thinking about scalability and…