Questions tagged as 'javascript'

0
answers

Multiple Maps routes

Today I use: "http://maps.google.com?saddr=Current+Location&daddr=" + lat + ',' + long + ""; To create routes in google maps, I would like to create multiple routes, can you help me how can I proceed?     
asked by 23.08.2018 / 22:21
0
answers

Message when mouseover disabled button in angle

I would like to see a message that has to be filled in with the required fields when passing the disabled button on the angle. I currently have: <button (mouseover)=testefunction() type="button" [disabled]="!f.valid" class="btn btn-succe...
asked by 27.08.2018 / 16:21
0
answers

DataTables - a single search field for multiple tables

I have a problem that is: I have a single table that repeats itself every day (all has the same columns) what sets it apart is the day and the information of the day. I would like a single search field for all tables. Before I used DataTables...
asked by 27.08.2018 / 15:58
1
answer

Doubt Javascript methods [duplicate]

Greetings I'm having a question about methods in javascript. Can anyone tell me if this is a method and what kind of method it is. nomeMetodo : function (){ //code } In case it would not be like this ... function nomeMetodo () {...
asked by 27.08.2018 / 16:45
0
answers

Check checkbox when receiving angle data

I have the following checkbox: <div *ngFor="let tela of telas" class="custom-control custom-checkbox check"> <input type="checkbox" #myItem (change)="OnCheckboxSelect(tela.id, $event)" value="{{tela.id}}" id="{{tela.nome_tela}}" nam...
asked by 27.08.2018 / 20:01
0
answers

Render chart using mongoDB and chart.js

Hello, I have a question on how to render a chart with chart.js using mongo data. I've already been able to render one, but I'm having trouble rendering another, probably due to how the data is returning. The query is as follows: const t...
asked by 20.08.2018 / 15:04
0
answers

How to point an id to an object in HTML?

So, I'm trying to constantly display the contents of an object in an HTML page. I'm passing a model through my controller to a form in thymeleaf: <form id="formTest" class="form-inline" action="#" th:action="@{'log/'}" th:object="${log}" m...
asked by 20.08.2018 / 17:52
0
answers

I can not use validator.min.js in the pug engine

I want to use the functions of the validatorjs in the pug engine, however I can not use it, my file validator.min.js is ./public/javascript, here is my code in the pug: html head title= message script(src="./public/javascript/valida...
asked by 20.08.2018 / 15:05
0
answers

What are JavaScript proxies?

I know that in version 5 of EcmaScript (ES6) they added the proxies. What are they? What is your main purpose?
asked by 22.08.2018 / 00:29
1
answer

Change background color of the iterative JavaScript select

Hello, guys. I'm having a hard time changing the background color of multiple selects in iteratively. I can already change, but I have to manually specify the index of the element for this to happen. Here's an example of what I'm doing: &l...
asked by 24.08.2018 / 21:06