Questions tagged as 'javascript'

1
answer

As I create an "a" element from a string and execute the url

I always get links similar to this, I need to execute the link to execute the redirection. I thought I would do it with location.href location.href ="http://xxx.com/index.php?x=xx"; But it would require extracting only the link...
asked by 14.09.2017 / 09:37
2
answers

Import javascript in TypeScript

Good morning! I have the following problem: I am starting in typescript and to start working I will be going through some of my javascript of a project that I have running. For this I started with my Main.js changing the name to .ts and mo...
asked by 05.05.2017 / 12:07
1
answer

Perform actions for each element of a Javascript array [closed]

I do not mean literally the element itself, but rather its number. That is, suppose the following array: var disparos = { colorBala: this.color; potenciaBala: this.pB; mL: this.mL; } var b =...
asked by 04.05.2017 / 21:10
1
answer

How to debug in javascript? specifically in angular2

Recently it has happened to me that I had an error, called EXCEPTION: Can not resolve all parameters ... I found that it was possibly because of the barrels, because when I tried to see the source of the error from my console, only that mes...
asked by 04.05.2017 / 03:03
1
answer

Do POST of a variable when it is redirected using HREF

I have a list that generates a button for each existing record, it receives the ID of the corresponding record and then redirects to another page if it is clicked. This is your HTML Code: List_Registries.html <input type="t...
asked by 25.04.2017 / 15:52
3
answers

Lists in HTML5 and JS [closed]

I want to make a list that when selecting one of its elements, an image related to that element appears on the same page, when selecting another element, the image of the second element appears and with the other elements, so that the images app...
asked by 26.04.2017 / 00:26
1
answer

change from list to grid [closed]

I have a big doubt that there are many asking the same thing but I do not find anything clear on the internet, I want to know how to change the list / grid, in my products, for now I have this: <script> $('button').on('click',functio...
asked by 18.04.2017 / 14:52
1
answer

if I pass a variable in $ scope to a service, if it is modified in the service, is it not modified in the controller?

Good morning, I am doing this procedure and I have a question, I am passing a series of paramentos to a service, that in the modification I modify those variables that go by parameter, then when entering in the controller, I do not see the ch...
asked by 23.04.2017 / 07:48
1
answer

Subtract varlores from one array with the last value of another array

I need to add to this subtraction tamaño -= parseInt(distanciaCentroUltimo[n]); the last element of otroArray that is 970 and divide it by 2 NOTE : the array that is named anotherArray can grow so that 970 will not always be the l...
asked by 23.04.2017 / 16:22
1
answer

Pass value from one to another for

I have these 2 cycles for , I need to pass the value of the variable disxd of the first cycle for to the variable disxd of the second < em> cycle for var distancia, aux = 0; arrText2.splice(0, 1);...
asked by 21.04.2017 / 19:46