Posts by André Cabral • 87 points
17 posts
-
1
votes1
answer57
viewsA: Files for nodejs settings
You can use async and await in this matter config.js const configuracoes = async () => { const configuracoes = await Configuracao.findOne() return configuracoes } module.exports = {…
node.jsanswered André Cabral 87 -
-2
votes2
answers311
viewsA: Pull Url of the variable in window.location.href
var my_func = function(event) { var InsertUrl = document.getElementById('campo').value; console.log(InsertUrl) window.location.href = InsertUrl; event.preventDefault(); }; var form =…
-
0
votes2
answers642
viewsA: Changing the functioning of Fullcalendar
I’m not sure what you wish you were accomplishing, come on! As stated in the comment above, you may be using eventClick: https://fullcalendar.io/docs/eventClick The following example shows you…
-
0
votes1
answer37
viewsA: Problem while uploading file
After a research more related to this subject, I was able to verify what I have to do, even did not know that this would be possible, if someone knows why this occurs, how it occurs, so I can…
node.jsanswered André Cabral 87 -
-2
votes1
answer37
viewsQ: Problem while uploading file
I am performing an operation where basically the client will be sending the images you want to the server. This way the way I am putting to occur the rescue is correct, but the user will not be…
node.jsasked André Cabral 87 -
-1
votes1
answer31
viewsQ: Problem capturing object value
I’m doing a database search (mongoDB) so it returns me an array, I just wanted to be picking up an array object but I’m not getting it. app.get("/", (req, res)=>{ Gift.find().lean().then(gifts…
-
0
votes1
answer33
viewsQ: Problem when displaying content and changing the view
I was with a problem regarding how to pass the data to the front and change the visualization of such information, after giving a search, I gathered some things I was researching, it was very…
-
0
votes3
answers73
viewsA: How could I decrease my code?
In this case, from what I understand, you want to display all the values in html by breaking the lines. As it is in your: document.write('Preço da comida') Try to put:…
javascriptanswered André Cabral 87 -
0
votes1
answer45
viewsA: Doubt/problem with "res.locals" after authentication
The handlebars it with the new updates it "blocks" access to information of this type, but it has to be requesting this data normally, just be putting the following excerpt in the code…
node.jsanswered André Cabral 87 -
0
votes1
answer45
viewsQ: Doubt/problem with "res.locals" after authentication
I am trying to get the data of the authenticated user, I read some things and I was trying, I was able to get all the user’s data but I can not only get information, as for example the name of the…
node.jsasked André Cabral 87 -
1
votes0
answers32
viewsQ: Error with nodejs/authentication/middleware
I’m having a problem logging in to the blog, the problem is: when trying to log in the first time with a user 0 (without being admin) it keeps loading the page and goes nowhere, but after I click on…
node.jsasked André Cabral 87 -
1
votes2
answers274
viewsA: Doubt/problem scanning QR Code with javascript and displaying the result in input
For those with the same doubt I was able to find a solution, where it was very simple, follow the code below the QR Code being recognized and soon after the value being displayed in the input.…
-
1
votes2
answers274
viewsQ: Doubt/problem scanning QR Code with javascript and displaying the result in input
I’m trying to get the QR code to be scanned it prints its value in the input, but I’m not getting it, I used some functions I know but the qr code is not printed in the input in any way, I’m new at…
-
-2
votes1
answer44
viewsQ: Problem validating input
I have a code where the user inserts the student ID and so it is redirected to a page with only the student presences, but if the user does not enter any data in the input it displays all presences,…
-
0
votes0
answers56
viewsQ: Doubt/problem redirecting after form submission with Node.js
Well, I’m new to programming and I’m trying to make a prototype of frequency recording to learn a little bit more about how to handle the database. My application has an area that I can be…
-
-1
votes1
answer94
viewsQ: Be displaying the data on the front end with Node.js
I’m having a problem where basically when inserting the data of two mysql tables in front-end I’m not getting, I think I’m reporting in the wrong way. // Exibir post app.get('/cad', function(req,…
-
-1
votes1
answer45
viewsQ: Search only if you click the button
I’m doing a search field similar to CTRL+F, but when opening the site on an older Android phone, the phone hangs, I wanted to be putting to search the word/letter only when the user click the…