Posts by Bruno Bafilli • 85 points
15 posts
-
0
votes0
answers16
viewsQ: WEBVIEW JAVA problems opening external links
Good morning, I’m having trouble in my Webview, I put my entire site to work in the APP, however... every time I click to open an external tab it opens externally, there is the possibility to open…
javaasked Bruno Bafilli 85 -
0
votes1
answer27
viewsQ: How to apply style to an element from the value of the same using CSS
Good afternoon, I would like to know if there is a possibility to apply style to an element from its value. for example... <p>Ola mundo</p> p(mundo){ background-color('blue') } in case…
cssasked Bruno Bafilli 85 -
-3
votes2
answers45
viewsA: Why does isNaN(true) return 'false'?
isNaN = Isn’t that a number? By stating with true, it means that isNaN ie it is not a number. isNaN(1) = false isNaN(true) = false
-
-2
votes1
answer91
viewsA: JS function to calculate age in months and years
Problem solved. [EDITED] let daysH = document.getElementById("date"); let monthH = document.getElementById("month"); let yearH = document.getElementById("year"); let showAge =…
javascriptanswered Bruno Bafilli 85 -
1
votes1
answer37
viewsA: How can I make this calculation be performed in all the Objects of the array and return me the value multiplied by the length of the table?
Well, I don’t quite understand your question, but I believe that’s what you want to do. function desafio() { let tabela = [ { preco: 10, qtd: 5, peso: 5 }, { preco: 2, qtd: 8, peso: 4 }, { preco:…
-
0
votes1
answer32
viewsA: How could you create a javascript function that receives data from this html script? informed and age (in years and months)
Good morning. The solution. <h2>Qual sua data de nascimento?</h2> <input type="text" id="dia" placeholder="Ano"><br><br> <input type="text" id="mes"…
-
1
votes1
answer20
viewsA: Receiving system variable and sending to dropdown
An interesting way would be to put this value in localStorage, this way is cleaner your URL and Voce can rescue this data in a simpler way. Guarding item:…
-
0
votes1
answer30
viewsA: Problem with a Javascript button
Since I can’t see your HTML I’ll make a suggestion with what we have.. Instead of attacking directly in this way, select all and make a subset through the array that will be generated using the…
-
-1
votes1
answer26
viewsQ: Creation of Global Vue component
Good afternoon.. I’m having the following error when trying to create a global component with VUEJS.. main.js import Vue from 'vue' import App from './App.vue' import vuetify from…
-
1
votes1
answer65
viewsA: Checking the existence of a file - JS
In fact it is right both the answer 1 and the answer 2, probably Voce is not running its application on any server, and precisely for this reason Voce has this error, I suggest Voce try to use some…
-
0
votes1
answer53
viewsA: How do I perform a setTimeout after another setTimeout?
You must save the information from the previous page in a Localstorage. Valuing: let key = 'item 1'; localStorage.setItem(key, 'value'); Recovering value let myItem = localStorage.getItem(key); This…
-
0
votes1
answer49
viewsA: I am having trouble synchronizing the execution of this program -- JS, Promise, async and await
Turn all your waiting into ASYNC, this can solve the problem. async function myName(){ var texto = await this.parseExcel() texto.then( (res) => console.log(res)) }…
-
0
votes2
answers70
viewsA: I need to make a button that gets the values that are inside a td
Try it this way. var id = $(this).closest('tr').find('button[produto-id]').data('id');
-
1
votes2
answers75
viewsA: Insert line break in an AJAX response
Good morning, I believe \n can help or even a <br>, If you want something with greater control, you can try using the split with javascript…
-
0
votes1
answer42
viewsQ: Is it possible to use ASYNC AWAIT when receiving a PROMISE return?
I would like to know if it is possible to receive the return of a Promise using async await? I created a file where I read a file and return the string of that file, to receive this variable, in my…