Posts by Claudio H. Yoshii • 76 points
10 posts
-
0
votes2
answers104
viewsA: Problems to load an IMG inside an IF - JAVASCRIPT
Try only 1 condition per ex: var idade =41 if (idade < 10){ console.log('criança') } else if(idade < 15){ console.log('pre-adolescente') } else if(idade < 40){ console.log('adulto') } else…
-
0
votes1
answer256
viewsA: my script does not work inside the modal
Next apparently Voce is having event bind problem. If your modal is static on the page, return $("#form1_f_name").val(), will be "empty" in the page shipment. To get the values corresponding to the…
-
0
votes1
answer1434
viewsA: Typeerror: expressValidator is not a Function
According to the documentation express-Validator At the time you see the express, Voce has to instantiate as follows: // ...rest of the initial code omitted for simplicity. const { check,…
node.jsanswered Claudio H. Yoshii 76 -
1
votes2
answers150
viewsA: v-form post does not send data
Hello, Your mistake is on that line: value="id" According to the Form Interconnection documentation Vuejs you have to "bind the id to value" that way: v-bind:value="id" This is how Vue references Id…
-
0
votes2
answers991
viewsA: check if the email already exists
The answer above is a little more "clean", but if you want to continue with your logic the problem is in the following code: app.post('/users/', async(req, res, next) => { let contract = new…
-
0
votes1
answer110
viewsA: Input value is the same throughout foreach
From what I understand, you have a problem with the bind of events. When you click the include button it takes the value of the class(html) js-note, but this class is defined in all the items of its…
-
0
votes1
answer184
viewsA: Syntaxerror: Unexpected Identifier 'Promise'
try the following code for the Ajax request. function getDados(){ let url = 'http://192.168.1.144/statusG'; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = () => { if…
-
1
votes1
answer537
viewsA: Success: Function AJAX does not work
Apparently your problem is on the line that defines the expected return type: {dataType:"json"} However what Voce mentioned that your backend delivery is not a "json". Delete the dataType line. Or…
-
0
votes1
answer97
viewsA: Jquery post with problems accessing a php class
Apparently the error is in contenttype, tries to set as example $.ajax({ type: "POST", url: "/url", dataType : "json", // <--tipo de retorno esperado contentType: "application/json", // <--…
-
1
votes0
answers48
viewsQ: Pushbots notification app crash
Hello, i use, Cordova + pushbots + framework7 project, when i send a push notification for android 4.2.2, if application still background my app crash... in version above 5.0, this Works fine....…