Questions tagged as 'javascript'

4
answers

two-dimensional javascript array

I have to get this structure in Javascript : In it I will keep objects in the first column and in the second one an amount that will be a whole number. I have to create it with a two-dimensional array. I have tried a thousand ways,...
asked by 23.01.2018 / 04:57
3
answers

How to get first nth-child or first-child with span using jQuery

I wanted to have the first nth-child, which is filled dynamically by aggregation and I do not know how to get it. $("ul > li > a > span.menu-item-text:nth-child(1)").text("Primer Inicio"); ul { padding: 0; margin: 0; }...
asked by 25.01.2017 / 13:46
1
answer

Use Modal for several buttons with javascript

In the following example, doing click on the button with id ( #myBtn ) opens a perfect modal and its content. My question: What should I modify and / or add in order to have several buttons and open the contents in different mann...
asked by 10.09.2018 / 18:29
1
answer

predefined iterables: implications with the length property and the access operator []

I was wondering if all the iterables predefined in JavaScript that have the property .length , can access their elements via operator [<indice numérico>] and vice versa? Array -> '.length' & operador '[]' String ->...
asked by 18.05.2017 / 17:57
2
answers

Error in NgFor Can not find a differ supporting object '[object Object]'

I need some help, I'm working on a project in angular on an agenda, but when I try to call the database objects I get the following error:    Can not find a differ supporting object '[object Object]' of type   'object' NgFor only supports bin...
asked by 14.07.2017 / 04:04
2
answers

Hide scroll bar without disabling it

I would like to find a way to hide the scroll bar in the browser. I have tried the following: <style type="text/css"> body { overflow:hidden; } </style> But setting overflow:hidden in the body , what happen...
asked by 17.05.2017 / 13:25
5
answers

Redirect to app play store from html

I would like to know how I can open my app directly in the google play store. It happens that we have an application that has a WebView pointing to the site of our company, on the site of our company we are placing the code below (that is a t...
asked by 05.05.2016 / 18:49
4
answers

Change the format of the date I receive from YYYY-MM-DD to DD / MM / YYYY

In this function, of the Database I bring the date value in AAAA-MM-DD format, and what I want is that when receiving by AJAX the date format is changed to DD/MM/AAAA . If someone like do it without using PHP to achieve it wou...
asked by 12.01.2017 / 18:38
2
answers

What does var = {} mean in javascript / jquery?

Sometimes I have seen variables that have two parentheses with nothing, that is to say this. var obtener_teclas = {} Especially in scripts to capture keystrokes, that is, keyboard events, does that variable mean that it will store some valu...
asked by 11.12.2018 / 09:16
3
answers

How to generate dynamic Divs on asp.net

I'm working with some designs in asp , I want to save the creation of x number of ASP pages, it is worth mentioning that I am working with
asked by 09.05.2016 / 16:24