Questions tagged as 'javascript'

1
answer

Am I required to call a Parameter if I determine it in a function?

Hello, I'm having a slight doubt about this if I determine a parameter in creating the javascript function, am I required to call it? example: function ts(metodo){ //código aqui } Can I give an onclick without determining that p...
asked by 20.08.2018 / 16:36
1
answer

Get domain via Node / Vue.js

I simply want the domain that appears there in the URL to appear on the page. window.location.hostname gives me this, it just does not work on Node / Vue.js, so what would be the solution?     
asked by 17.08.2018 / 16:26
2
answers

How to manipulate date in HTML?

I'm thinking of a scheme, but I do not know how to do it and it's simple. I need to do the following calculation: Day and Month x Month and Day, example, today's date: Dia: 16 Mês: 07 x (vezes) Mês: 07 Dia: 16 In a calculator it will loo...
asked by 16.07.2018 / 16:55
2
answers

Smoothing animation in JS

I'm creating an application based on Vue.js. This application should contain some elements that are animated according to the mouse. I created the animations in javascript and you notice that the elements are "tremendous" on the screen, you c...
asked by 16.07.2018 / 20:50
1
answer

Working with asynchrony using ReactJS

I have the following code: requireUsers = () => { this.users = database.ref('users') this.users.on('value', snapshot => { this.state.users = snapshot.val() Object.keys(snapshot.val()).map((value,key) => emails[...
asked by 04.11.2018 / 04:32
1
answer

Integrate JavaScript

I have a questionnaire where the user will answer x questions and will receive a response at the end, when you click the "answer" button. I made the first version where everything is working, except that in this version the questions are all...
asked by 07.11.2018 / 16:56
1
answer

Using React in backend and small projects

Is it possible to integrate the React application with some back end language? Can I apply React on small projects or only when there is a need? React came to break the standard web development paradigm, where I create separate files, each...
asked by 13.08.2018 / 22:35
1
answer

How do I let div superimposed on another div?

How do I leave div #inner-block in the foreground? #block-1 { position: absolute; width: 200px; height: 200px; top: 10px; left: 10px; background-color: #999; z-index: 1; } #inner-block { position: relativ...
asked by 07.11.2018 / 07:37
3
answers

Send a string name via post using javascript

Good night, I'm trying to send only the name to the server, but every time I pass the string it arrives at the server as "name:", here is the way I'm trying: <!DOCTYPE html> <html> <head> <script> var bt...
asked by 14.08.2018 / 03:19
2
answers

How do I create an attribute for an HTML tag? Something similar to the existing "required"

I have a page with several <input> and some of them are required, these <input> are not in a <form> tag, so I think required can not work in this situation. I have done the verification in the same hand:...
asked by 12.08.2018 / 22:41