Posts by João Pedro Silva Dezembro • 303 points
14 posts
-
2
votes1
answer70
viewsA: How to create Divs with Specific Images?
If I understood correctly, I would do it this way: Would use 3 Divs, one is the container with the background of the map of Brazil and would use two others internally to add the 2 other images.…
-
2
votes1
answer67
viewsA: Event when loading the page in Javascript
Luke, in this case the final elements (which are the ones after being loaded) are not there yet! They are most likely being created and called an API yet. To improve the user experience and increase…
-
2
votes2
answers575
viewsA: Help with Promisse {<Pending>}
Its function cepCheck is an asynchronous function, so you need to wait using a await the result of it in the test variable (const test = cepCheck(obj)) To test, you can add a.log console before…
-
1
votes2
answers141
viewsA: Node using Axios with express, I want to wait for Promises
You need to make some modifications to your code You need to warn that your function is asynchronous, you need to wait for the Axios response (which is asynchronous, and .then and .error are just…
javascriptanswered João Pedro Silva Dezembro 303 -
0
votes2
answers40
viewsA: Error when exporting custom component
You need to import the Layout module in two possible places: In your page module, if you use Lazyload, or in the Appmodule module, if you are using standard routing. Importing into Approuting will…
-
0
votes1
answer30
viewsA: Accountant Jquery
In itself, you every time you call the function are creating the counter variable of 0. You are not saving the value of this variable outside the scope of the function. You can solve this problem by…
jqueryanswered João Pedro Silva Dezembro 303 -
0
votes2
answers461
viewsA: Take function result and insert into an Input type text (html)
You are incorrectly using the element query document.getElementById('cQtd') This code above you are only recovering and the variable of the DOM element, not the internal value itself. To retrieve…
-
1
votes0
answers33
viewsQ: Problem in generating a dynamic graph in vis.js
I have a problem in this graphic library: http://visjs.org/ The data is correct (and correct in the graph as well), but visually they are not being represented correctly. Example: The red node has…
-
0
votes1
answer129
viewsA: Nodemon loads index from directory but does not open index
As Max Rogério answered in the comments of the question, the lack of ./ before the file or the . js path to be set was causing the error. To fix just add the ./ before filing. Ex: nodemon…
-
0
votes1
answer129
viewsQ: Nodemon loads index from directory but does not open index
I have a problem using Nodemon, whenever I start or restart the server for it instead of printing something on the console or load a page it is only in the directory Index. It takes several minutes…
-
0
votes1
answer46
viewsQ: How to automatically generate and redirect the link in the header
I am needing to generate a system where I have a template page (the fb profile for example) and that will be fed by my database with the information according to a user’s ID. My problem is: I do not…
-
0
votes1
answer72
viewsQ: A function run infinitely in Servlet
I have a Servlet application that constantly receives POST requests, I do the data processing and processing normally in its due Java classes, however one of my applications it should not be rotated…
-
0
votes1
answer318
viewsQ: How to set up a common java project, host and run on a server
Whoa, good night guys, so with some questions about java systems running without server. Some friends and I are developing a java integration project (we receive information from a server/service,…
-
5
votes1
answer537
viewsQ: How to open a password protected Word document?
I can normally open a file .docx in Word using the desktop.open java, but there is a case where I need to open the document that is password protected and Word opens asking for it. Is there any way…