Questions tagged as 'javascript'

1
answer

Clicking on the checkbox disables the button

I have the following code that automatically brings the freight value: foreach($dados->cServico as $linhas) { if($linhas->Codigo == '04014'){ $servico = "SEDEX"; } if($linhas->Codigo == '04510'){ $servico...
asked by 29.10.2017 / 18:57
1
answer

Java external script for the html page is not working

I have a problem with my pages after trying to put js in an external file it just stopped working, and I could not find the error so far. Follow the codes HTML <script type="text/javascript" src="funcjs.js"></script>//den...
asked by 30.10.2017 / 15:30
1
answer

Populate INPUTS with ajax

I have some fields that I need to populate with AJAX from a SELECT in php. I am already able to fill in the ID field, and CUSTOMER, now the remaining items are missing, such as ENDERECO, CPF, NEIGHBORHOOD, CITY. Ajax $("#resultado").hi...
asked by 29.10.2017 / 02:14
1
answer

Using return of one AngularJS method in another controllerJS

I have this method in my controllerJS script and would need to use the response of this method on another controllerJs. How do I do it? app.controller("loginController", function($scope, $http, $location){ $scope.usuarios = {}; $s...
asked by 19.10.2017 / 15:12
1
answer

Complete fields from a field with mascara

I have a function that completes the tipo logradouro, endereço, bairro, cidade e estado fields from the moment the user informs the cep . But I have a mask in the zip field, and because the records in the database are missing charac...
asked by 18.10.2017 / 16:00
1
answer

Get coordinates, measure distances, and compare them

I was proposed to develop a page where it presents an excerpt of Google Maps with several markers organized in clusters (done). I have no experience with JavaScript, and what I need is that by clicking a button (or not), it's possible to get my...
asked by 18.10.2017 / 13:44
2
answers

Angular 4 - Call function of the Component through the service

How do I, while in service, call a function from the component that instantiated this service?     
asked by 17.10.2017 / 19:14
1
answer

Error: "Can not set headers after they are sent" in Node.js / Express

I have the following method: //USER_POST router.post('/user', (req,res,next) =>{ var obj = {name:req.body.des_name, email:req.body.des_email, endereco:req.body.des_endereco, c...
asked by 17.10.2017 / 15:59
1
answer

Display Array data in the Jquery table

I'm developing an application which calculates the average where I validate the fields if they are filled out and if the fields are filled and the sum of the notes is less than 10 it passes the inputText data to the calculating function of the m...
asked by 04.11.2017 / 23:30
2
answers

Automatic login and password completion

I have some links that I frequently access at work, so I've created a page with all those links for easy access. Some of these sites I have a username and password to access. What I wanted to do was click the link and the user and password fi...
asked by 03.11.2017 / 20:21