Questions tagged as 'javascript'

2
answers

Can not read property 'setAttribute' of null with ngFor

I have a ngFor that adds multiple strings, and that data comes from an api <p class="teste" *ngFor="let element of objeto_retorno" >Filial {{ element.FILIAL }} = {{ element.TOTAL }} </p> and no ts: ngOnInit() { document....
asked by 15.08.2018 / 15:32
1
answer

Copy file text to textarea

How to copy the contents of a text file to a textarea . <html> <head> <script> function validar() { arquivos = document.getElementById('arquivo').value; res = arquivos.split("\n");...
asked by 15.08.2018 / 22:00
2
answers

Open select open value with javascript

Good morning, I have a request that I can not find anything like this. When you click on the select, it sends a request to the javascript and fills in the data, and when filling in, I need that data to appear. To fill, fine, it works fine,...
asked by 13.08.2018 / 14:06
1
answer

How to format a number in percentage within JavaScript?

Gentlemen, I'm developing a billing monitoring dashboard. I want to turn this number 56% directly into my JavaScript code. Here is a snippet of my code, it is fed directly by a query from my SQL. This is the query that feeds my field within J...
asked by 27.07.2018 / 22:12
3
answers

Send form without knowing the name

I have a form that changes its name constantly, and I want to give the submit in it by a function. In this function "changes" it gets the name of the form, but this way I did it does not work. The "+ ide +" of the form is a random number, so mov...
asked by 25.07.2018 / 20:00
1
answer

Error accessing cori api

Personal I'm trying to access a wikipedia service with JQ, but this in returning cors error, could someone help me with a code to access this service correctly. Url: link error Blocked cross-origin request: The Same Origin Policy prev...
asked by 29.06.2018 / 18:34
2
answers

Why can not I send the "+" character via post in a simple HTML form?

I made a simple page in html that when I received the login and a password it sends to another page where the data is verified, the problem is that when I put the "+" character in the password it simply does not arrive in the post, what arrive...
asked by 06.06.2018 / 16:24
1
answer

Angular Scripts

Hello, I have an angular application where I am using jquery scripts to implement a datapiker and a timepiker, those presented below: Ihaveaseparatescriptforinitializingthem,whichisshownbelow: jQuery(document).ready(function () {...
asked by 05.06.2018 / 07:35
1
answer

Execute event only if another event has already been executed [closed]

I have two listeners for the scroll event, and I need the second to be executed only if the first one has already been executed previously, only once, until the first event is executed again. For example, I have event X and Y; X can only be ru...
asked by 06.06.2018 / 05:15
3
answers

how to get the opening and closing times and save in two variables with javascript?

How to get the start and end times and save in two variables with javascript? var hora1 = '9h - 22h' var hora2 = '12h - 21h' var1 = 9 var2 = 22 var3 = 12 var4 = 21 using substring I could not because they values vary dy...
asked by 08.06.2018 / 22:56