Questions tagged as 'javascript'

1
answer

change ol.style.Circle by Icon javascript

Good I am working in javascript more specifically with the Api of OpenLayers in search of making a map with bus stops which I take from a mysql database. So far I have you bring me the stops according to the company and clicking on the circle sh...
asked by 13.04.2018 / 12:18
3
answers

How to use a path of a file to load it in a variable in javascript?

I am making a web page and I want to always take a txt that I have in the root folder and load it in a variable to then manipulate the data of that txt without having to load it with a control input. That this route is always fixed and that it i...
asked by 19.04.2018 / 15:27
2
answers

How to make an INPUT only accept some characters [closed]

How to make an INPUT only accept some characters. For example, I want to accept the numbers from 0 to 9 and only some special characters. If the entered character is not allowed, it is not marked in the input. Thank you very much for your...
asked by 02.11.2018 / 14:49
1
answer

Independence in the Context of a view using Partial or RenderPartial asp.net mvc

Hello, people could help me See if I explain: I have an Index view that has a table and includes several times the same partial view (prev call) in the spaces of the table, each (prev.cshtml) with different size, within the partial view (p...
asked by 06.01.2018 / 14:27
2
answers

Getters and setters in javascript [closed]

I am entering the world of programming. It is hard for me to understand the getters and setters, I understand that they are for data validation, but the problem is that the object section comes from classes and from what I see only use the gette...
asked by 13.01.2018 / 05:19
2
answers

Obtain array repeats

var a = { edades = [12,15,16,2,12,45,60,15] }; for(var i=0;i<a;i++) { console.log("Soy:" +i); } As a story if there are repeated numbers in array ages, and if they repeat only execute the instructions once (but only for that...
asked by 21.07.2017 / 05:52
1
answer

Why do not you give me the style of my e.target element?

I do not read the style property of my element when I click, only if I insert the style in the html, if I do it in the css it does not work for me. Thanks //// MOUSE EVENTS => let body = document.getElementsByTagName('body')[0]; //se...
asked by 18.12.2017 / 12:26
2
answers

Modifications to Vue do not work

The .vue files that are in the resources/assets/js/components box are the system components. It happens to me that when I edit any of those components, no modification appears in the view. file: resources/assets/js/app.js...
asked by 28.08.2017 / 15:13
2
answers

Input stores old data

I have an input type number , depending on a radiobutton this input can change between type date and type number . The problem is that after the submit and changing the selection of radiobutton my input st...
asked by 14.03.2018 / 04:18
1
answer

Replace values of a string [closed]

I have a variable var fruits = "Banana, Orange, Apple, Mango"; What I need is that every one that finds a "," skip the line with a "\ n" and good disappears the "," so it looks like this: Banana Orange Apple Mango     
asked by 20.03.2018 / 15:56