Questions tagged as 'javascript'

1
answer

Javascript condition [closed]

I started to study javascript recently and the following code is only giving me the wrong answer, where did I go wrong? When I play at the prompt to check if it's right, it gives me "n1 is odd" // Verifique se um número é par ou ímpar var n1...
asked by 09.10.2018 / 14:33
1
answer

Make sum of the values of each equal item, stored in one object and store in another array

I am making an application using firebase and reactjs, which returns an object with the outflow. Since I am using chartjs to display a graph, I need to generate an array where each position would have the total sum for each month. My difficulty...
asked by 09.10.2018 / 21:51
1
answer

How to insert a new div and stack them after clicking a button

I have an HTML div that displays totals of a calculation, and I need every new one (on the click of the Generate button) to generate a new blank div to get the values, stacking those already generated one under the other. HTML Code BOTA...
asked by 09.04.2018 / 22:40
1
answer

List CRUD with JQuery

I am creating a list of items with JQuery that is rendered on the screen according to what is typed in the input. To display the on-screen element (item name, change button, and remove button) javascript adds the value typed into an array of...
asked by 08.04.2018 / 17:45
2
answers

How to stream a file from my server?

People would like to know how I can make a shareable file type, for example: I have a file called bots.txt on my server, I would like my clients to edit it via the web getting saved on my server. The following is an example of Onedrive: File ....
asked by 16.04.2018 / 20:05
1
answer

How to access JSON return position with JavaScript?

How do I access some position in the array below depending on the user's choice in select ? For example, if he selects option 11 in select I display the value of the installmentAmount key of position 11 for the user. {error...
asked by 16.04.2018 / 22:47
1
answer

'_ $ visited' property on JavaScript object on return of mapv () function from Obervable

I have a WebService implemented with JAX-RS and I'm consuming it with a service ( utilizando Angular 2 ) Follow the service: @Injectable() export class ModeloService { constructor(private http: Http) { } getAll(): Obser...
asked by 17.01.2018 / 18:22
1
answer

Retrieve input file to pass as date in AJAX

I'm developing an application in which, for reasons of aesthetics, I needed to recreate some elements in order to be able to customize each one, especially <select> and <option> correctly. So I need to pass the form...
asked by 17.01.2018 / 16:58
1
answer

How to use the setTimeout () method to delay the appearance of a Javascript alert?

Good afternoon, right now I'm developing a javascript, html and css project. it is the Game of the Rooster, the game works only that I need that the warning of victory or of tie only appears after the X or the O. And what is happening is that th...
asked by 18.01.2018 / 17:23
1
answer

How to apply javascript events in Angular?

I'm having a hard time applying Javascript in my Angular project, I got it right in the configuration to connect the javascript in the project, but come on ... This is the Javascript file; var Brewer = Brewer || {}; Brewer.MascaraCpfCnpj =...
asked by 24.01.2018 / 21:17