Questions tagged as 'javascript'

1
answer

how to traverse an array with typescript?

I have a JSON that contains multiple data which I need to edit, through typescript I found that I can modify it using map his.items = this.items.map((item: string) => Now inside the item I have a route item.better_featured_image that co...
asked by 23.07.2017 / 18:54
1
answer

Problem with POST requests inside a FOR loop in angularjs [closed]

I'm starting on Angularjs and Javascript and I'm having trouble with requests to a REST API. This is my function: $scope.exportERP=function(){ // En primer lugar insertamos los artículos. var artUrl = urlERP + "art_m" + apiKey...
asked by 08.08.2017 / 11:21
1
answer

Delete an object from an array using property in typescript

I want to delete an object from an array (orderList) indicated in id of the object, using typescript. I am basing myself on the accepted response of this question . But I can not get the element removed from the array. // array donde se al...
asked by 08.08.2017 / 20:16
2
answers

How to copy the prototype window?

How can I inherit the properties and all methods from window to an object created by me? Since for example for this: window.addEventListener(); I would like to make it small to use it habitually to: var myObject = Object.create(windo...
asked by 29.10.2017 / 02:44
2
answers

Detect scroll movement of a select

I have this example code:                          </head> <script> $(document).ready(function() { $('#contenido2').scroll(function(){ var windowHeight = $('#contenido2').scrollTop(); console.log(windowH...
asked by 27.10.2017 / 10:03
1
answer

I want to make a textarea that has a modifiable and a non-modifiable part

I want to create a textarea in a form made in HTML , using simple CSS in which I can see information that I have already entered and then within the same textarea can add text. I managed to do something similar usin...
asked by 27.07.2017 / 19:14
4
answers

Fixed value in a text field PHP

I have a form where in one of the fields I ask for a person's ID. My question is, how can I make a letter in the input text that is necessary for my registration of the DNI field? I mean, I have the following code: <div class="form-group" s...
asked by 16.08.2017 / 02:46
1
answer

Hangman query javascript

I would like to ask if someone finds out what the problem is in the code that I left of the game hanged. I have a button with the id test-letter , which the idea would be to go through an array where you save the word and compare it wit...
asked by 22.06.2017 / 15:29
1
answer

Problems performing an infinite scroll with AJAX

I'm trying to run an infinite scroll for a news section. What I want is that when I reach a certain point of the scroll, another news block will be added, if the user reaches the end of the scroll, another one will be added again. So until there...
asked by 14.08.2017 / 00:12
2
answers

How to modify the structure of a table with sequelize without deleting the data?

I have a model made with sequelize , I can not delete the data from the institution table, but now I have to add a day field. I've already tried sequelize.sync but it does not modify the structure of the table. and sequelize.sync...
asked by 11.07.2017 / 16:10