Questions tagged as 'javascript'

2
answers

Read a JSON object from Javascript

I have found many forums and texts where they explain it in detail, the problem is that nothing works for me and I have tried it in many ways. I leave you the JSON and how I try to read it without having different results from:    application...
asked by 30.12.2016 / 21:06
1
answer

Incremental loop between ranges in JavaScript

I have the following Array's (below), and I need to print in increments the ranges of positions that are there, I mean, in position 0 of array1 is the 10 and in array2 is the 15, I need to increase in one and then start from the number that is i...
asked by 14.08.2018 / 17:49
2
answers

AmCharts - Decimal Rounding of the Mean

I am working with AmCharts. My chart is fully functional, and I want the median value to show. Here I put my code: "graphs": [ { "title": "Total Open Ratio %", "valueField": "def", "type": "line", "fillAlphas": 0.2,...
asked by 25.01.2016 / 13:08
2
answers

Delete item when a key is pressed

The code consists of creating a wolf with the arrows on the keyboard, I already made a functional code, but a wolf remains behind as if it were a wolf line. How do I remove the wolf old as it were? That is, the wolf before the new one that...
asked by 25.12.2018 / 00:46
3
answers

How to activate event when you reach a certain point on the page with javascript or jquery?

You see, I have a menu on a one-page site, in which when you click on a menu item you go down to the indicated section and the selected menu item is underlined, but I need to make scroll and be in That section also underlines the element,...
asked by 20.06.2017 / 03:02
1
answer

How to scraping a remote xml file?

I want to get certain data from an open-access XML file on a remote server. These are Open Data files of AEMET. The idea is to read the xml and extract some information. I want to do it using javascript, so that I can visualize in a web this...
asked by 23.03.2016 / 17:29
1
answer

LocalStorage does not keep the data saved when the browser is closed

I'm trying LocalStorage to store data in the client's memory and I have a problem that I can not solve. I save an object transformed into a chain by means of setItem in LocalStorage and I can access it by refreshing the browser (Chrome 49.0)...
asked by 20.03.2016 / 23:56
2
answers

Null value in data obtained from JSON

I have a script that recovers the information of a JSON as I can put so that if it has nothing the JSON does not put anything in the variable items . This is my code: <script type="text/javascript"> $(function () {...
asked by 21.12.2015 / 21:58
2
answers

Unit Test with Unsupported Media Type response in HapiJS

I'm doing the unit-testing with lab for a service in hapijs . The service basically asks for a file: server.route({ method: 'POST', path: '/file', config: { payload:{ output:'stream', parse: true,...
asked by 06.01.2016 / 21:33
1
answer

How can I combine two Array into one?

I have an array that has the following data: var mes = {"Mes": ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre']}; and others that have the following data: var data = [...
asked by 18.06.2018 / 21:04