Posts by Fernando Matos • 71 points
4 posts
-
0
votes1
answer55
viewsA: Execute a method on an HTML element without using the click event
You should not use window.onload, because some elements can be loaded asynchronously and then in these cases may not yet be found. For a greater guarantee use: If you’re used to jquery:…
-
1
votes2
answers55
viewsA: Async function returning before result
No async/await is required for the scenario you want. The problem is using the incorrect overload for what it needs, the 'rsa.generateKeyPair' function'. You can use the same function…
-
1
votes1
answer138
viewsA: Image manipulation with nodejs and Ionic
You need to move the image to an independent upload endpoint via your api. Ex.: POST /api/uploadimage . The necessary key in your header for the request: Content-Type:…
-
2
votes3
answers125
viewsA: Async Function javascript
await always awaits the return of a Promise, sign the function getProduto for async will rather ensure the return of a Promise for this, but that is not your problem but the internal code of the…