Posts by Diego Armando Cacilha • 97 points
10 posts
-
1
votes1
answer360
viewsQ: Send Formdata with Fetch API
I’m trying to send a Formdata() to the backend via Fetch API, but I can’t read the form inputs in NODEJS. By the way, req.body is empty. I’m wearing the body-parser and express. Backend: const…
-
1
votes1
answer75
viewsQ: Check all the requests
Hello, I am using express-Session and would like to know how to verify the session of all incoming requests on the server. For example, today I’m using the stretch on all my routes:…
-
1
votes1
answer107
viewsQ: Update of an index of an array of a Mongodb document
Guys, I would like to know how to update a document value that is inside an array. See the document: > db.alunos.find().pretty() { "_id" : ObjectId("5ba141b186b9fc17121423a1"), "nome" : "Diego",…
mongodbasked Diego Armando Cacilha 97 -
0
votes1
answer302
viewsQ: Format ISO date (yyyy-MM-ddThh:mm:ss.sssZ) to be displayed in INPUT (dd/mm/yyyy hh:mm)
The server gives me the date in ISO format (yyyy-MM-ddThh:mm:ss.sssZ). How do I have this date displayed in the input with dd/mm/yyyy hh:mm format? <input type="date" class="form-control"…
-
-3
votes2
answers1040
viewsA: How to disable responsive from a css site
Man, I think it’s gonna depend a lot on how you’re developing your CSS. Search for CSS3 @media Rule. You can apply style only when it is a desktop, printer, projector, mobile phone, etc. And it has…
-
-1
votes2
answers157
viewsA: Code error using switch and new date
See if it helps: var arrDay = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]; console.log("Hoje é " + arrDay[new Date().getDay()]);…
-
1
votes2
answers85
viewsA: Replacing characters in a string
Dude, there is no problem with this code. Your variable contains "R$" and you replace it with "". What you would like to appear on Alert()? if (form1.autonomoBonusBruto.value.includes("R$")){…
-
4
votes3
answers156
viewsA: Difference in behavior between for and for.. in
The third index of yours array is the very winner, that is, there is the index 0, the 1 and the winner (which is also an index). And as @Maniero said, for in varre, in addition to the contents you…
-
2
votes4
answers790
viewsA: capture value of < option > with jQuery
The following is an example. HTML: $(document).ready(function(){ $("#selecao").on("change", teste); }); var teste = function(evt){ var valorSelecionado = evt.target.value;…
-
0
votes2
answers1756
viewsQ: Receive txt and generate image from text
Hello guys! I have a problem that I cannot solve in any way. I have tried a lot and I have not gotten anywhere. In the company where I work we use proprietary language, which I hate. When I request…