Posts by Mauriciohappy • 34 points
8 posts
-
0
votes2
answers461
viewsA: How to wait two promises before returning to function?
the only way to expect a Promise is by using async/await if your methods _getVideo and _getImage return a sufficient Promise in your method saveFiles do: async saveFiles(item) { var sizeImage = 0;…
-
0
votes3
answers209
viewsA: Undefined return when calling function
I saw something wrong with your code. The await will only work if your request is a Promise and apparently it is not, you can put your request in a Promise and put the body in how you resolve your…
-
-1
votes1
answer82
viewsA: Form PHP, how to redirect with the data filled?
Well the only way to do that would be to request with Javascript, so when you hit the ok button you would call a function in Javascript that would send your data and not reset your form, it would…
-
1
votes1
answer54
viewsA: First and second parameter in replaceState
Basically the first parameter of the window.hostory.replaceState() method, serves to pass some information through the history state, accessing history.state you will have the object passed in the…
javascriptanswered Mauriciohappy 34 -
0
votes4
answers84
viewsA: How to do a sequential for with nodejs version 8?
You could try using await before DB.query since it is a precedent, but it will only work if it is inside an async function. It’s good to take a look if Node version 8 supports async and await, it…
-
0
votes2
answers130
viewsA: Why are you making a mistake when executing the code via Node?
I think your Node does not accept Let because it is in an old version, try updating the version of Node and test your code again.
-
1
votes2
answers48
viewsA: Select class from load
Use the event .on(): $("body").on("click",".ident",function(){ alert($(this).val()); });
-
0
votes2
answers614
viewsA: how to pass a php string through a java script parameter
You are passing the parameters in <a href="#" onclick="return chamarPhpAjax(<?php $dados->so;?> , <?php $dados->name;?> );"></a> but its function function…