Questions tagged as 'javascript'

1
answer

How to import non-angular Javascript?

Greeting for all, I know how to import css files into a project made with the new version of Angular as you can see below: Files angular-cli.json "styles": [ "../node_modules/bootstrap/dist/css/bootstrap.css", "../node...
asked by 28.12.2017 / 09:15
1
answer

Index in JavaScript

I have a table where I can add rows dynamically, every time I click the button I add a new row to fill the field, my first row comes with index 0 <td><input type="text" name="data[Ticket][0][descricao_ticket]" size="20" placeholder="I...
asked by 26.11.2017 / 18:25
2
answers

Consume Json Vuejs2 with Axios

I'm trying a popular list with a JSON, but I'm having problems. I can only make the list by indexing the array, but only one item in the list goes, and I can not get it populated with all the items in the list. I do not know if I can be very cle...
asked by 27.11.2017 / 15:41
1
answer

How to select a radio through another?

Let's say that I have 3 inputs of type 'radio' (A, B, C) and I have two other 'radio' (X, Z) disabled and can only be auto-selected if the radio B or C is clicked, and if I click the radio A < strong>, the radios (X, Z) should come back a...
asked by 26.11.2017 / 21:36
1
answer

Execute an if in php only after clicking the [duplicate]

I need to run an if in PHP only if there is a click button. If there is no click the if does not execute. I already imagine that I will need to interact with JavaScript with PHP, but ... I read several posts but I still can not do it....
asked by 27.11.2017 / 13:14
1
answer

Object.freeze Javascript

How can I get a Object.freeze on just one object? Here's the example below where I create a , replicate a to b , freezo b , and try to re-assign a value to a . But it is no longer possible. Because? How d...
asked by 27.11.2017 / 14:43
1
answer

AngularJS - Access a variable from a service

How do I access the LatLng variable in the application? $http({ method: 'POST', url: './database/getCep.php' }).then(function successCallback(response) { var LatLng = $scope.get_cep = response.data; console.l...
asked by 27.11.2017 / 20:14
1
answer

Capturing Attributes from an Image with JavaScript or JQuery via Url

I have an image that will be rendered in a Div, but I need to capture the Height of it since I need to deal with it before putting it in the div (size). I do not have the image on the screen, so I can not make a document.GetElement ..     
asked by 28.11.2017 / 16:23
1
answer

Failed to pass html menu to CakePHP

In the link below I have a perfectly working Menu in Codepen as below link: link Starting CSS #DPrincipais { display: block; } #TrabalhoRendimento { display: none; } #Referencia { display: none; } #Comprovante { display: none;...
asked by 30.11.2017 / 21:09
1
answer

Encrypt link javascript

Hello! I need to encrypt a script, however when I do this the url I'm using as the API for ajax does not work. And the most important thing would be to hide encrypt it.     
asked by 18.12.2017 / 22:39