Questions tagged as 'javascript'

1
answer

How to return to the initial value after a change in the event

I have this code: let inicial = 0 let vPag = 3 const numeros = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]; render() function resultadoPag(pagina){ vPag = pagina.value; render();...
asked by 24.02.2018 / 18:28
1
answer

Modify the color of DatePicker

I am trying to modify the background color of my jquery datepicker, I searched the internet for some solutions brought me this code: .ui-datepicker { color:white; background-color: red; background: red; } So it does not modify the calenda...
asked by 25.02.2018 / 15:57
1
answer

Display popup when closing page [duplicate]

Hello. I would like to know a code to display a form as a popup when the user closes the page. That is, that moment when he takes the cursor over the browser. Because the page was made by the RD tool. Form in question: link Form Cod...
asked by 24.02.2018 / 19:29
1
answer

this.setState does not work

Does anyone know why the function this.setState (token: token_here) is not working or returning error? export default class Init extends Component<Props> { state = { // Evita que o código seja executado duas vezes....
asked by 26.02.2018 / 05:04
2
answers

Regex to leave first letter of full name capitalized, even with special character [duplicate]

I have the following variable in $ scope of Angular JS, with an arrow function: $scope.cad.nome.toLowerCase().replace(/\b\w/g, l => l.toUpperCase()); I need to format your content, which is someone's full name. It is working until the...
asked by 23.02.2018 / 18:29
2
answers

JavaScript.push () inserts variable instead of variable value

I'm having trouble with this code: Expected Exit: detalhes:[{ 01: 4570.00, 02: 4301.68, 03: 650.00, 12: 700.00, }] reality: 0:[{ { mes: 4570.00, }, { mes: 4301.68, }, { mes: 650.00, }, {...
asked by 19.03.2018 / 23:01
1
answer

Transform the DATA entry into a PHP / JAVA variable

I hope you understand the situation: By programming a web page, I have created a data field where the user chooses the date that to filter the information contained in the site, ie only display information that reflects the chosen day o...
asked by 20.03.2018 / 20:15
1
answer

How to search and update data with mongoose?

I'm using mongodb with mongoose in nodejs, I have my schema like this: const UserSchema = new mongoose.Schema({ username: { type: String, unique: true, require: true }, balances: { dolar: {...
asked by 20.03.2018 / 00:22
1
answer

My Google Analytics does not work [closed]

I have a website in the air and I wanted to have the information of how many people have accessed by day and week, so I created a login in google analytics and registered my site. Google Analytics generated a code with my ID to put on the hea...
asked by 22.02.2018 / 12:36
1
answer

How to pass items from an [object Object] to the parent json

Hello, the server is returning me the following json this.itens = { id: '', data: '', hora: '', cliente:{ nome: '', cpf: '' } } I need the client data not to be in a second json but in a field ex clienteNome: ''...
asked by 24.06.2018 / 23:55