Questions tagged as 'javascript'

1
answer

How to fill select with javascript php and jquery?

I would like you to help me with the doubt I have <head> <meta charset = "UTF-8"> <title>Formulario de registro</title> <link rel="stylesheet" href="../css/reg.css"> <script src="../js/llenar.js...
asked by 28.12.2017 / 18:42
1
answer

Get the PromiseValue of a promise

I have a function that returns the contents of an html file, but it returns something like this: Promise {<pending>}__proto__: Promise[[PromiseStatus]]: "resolved"[[PromiseValue]]: "<span>contendido</spab>" How could I get...
asked by 17.01.2018 / 16:49
1
answer

Problems with bringing a photo-like data from an api

I have an api that returns data in which I fill in the detatables, in these precise moments I have problems with pulling a data that brings me a picture of a model. Then I leave the api: for anuncio in anuncios: data = {}...
asked by 17.01.2018 / 22:14
1
answer

How to capture click on a map marker

Good, how can I do to capture the click on a marker in maps? As you can see I did a test (several) but it is not correct. $(document).ready(function(){ //JS para trabajar con el mapa en el apartado de gimnasios. function localizacion(posic...
asked by 17.01.2018 / 20:13
1
answer

Avoid page refresh when pressing buttons

Greetings, I'm looking for a way to avoid the refresh that my page makes when adding an element by pressing a button, either adding, subtracting or deleting an element. I would like you to stay in the same place and do not refresh the page since...
asked by 23.01.2018 / 02:54
3
answers

Select items ignoring others with JQuery

I have this structure HTML . var subMenuElementos = $('#menu nav ul li a'); subMenuElementos.removeAttr('href'); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="me...
asked by 23.01.2018 / 00:27
2
answers

Increase number with jquery and localstorage

I am using localstorage and getTime , to receive the time and save it in localstorage and then calculate if 1 minuto has passed and update localstorage and display a text in div . (I clarify that this is f...
asked by 07.01.2018 / 14:01
2
answers

Doubts about the following code

Hello reviewing the typescript documentation I found these code blocks and would like to know more in detail why these results occur, the first for print only 10 and the second prints the sequence ????? for (var i = 0; i < 10; i++) {...
asked by 07.01.2018 / 04:24
1
answer

How to convert elements of an array from string to float?

I have this array (values string ) locations = [ {lat: "-31.563910", lng: "147.154312"}, {lat: "-33.718234", lng: "150.363181"}, {lat: "-33.727111", lng: "150.371124"} ] and I want the array to be like this...
asked by 10.01.2018 / 16:15
1
answer

"node" "is not recognized as an internal or external command, program or batch file executable

Hello, how are you? I would like to know if anyone knows how to solve the following error in atom:    "node" "is not recognized as an internal or external command,   program or batch file executable.   [Finished in 0.208s] Install the pac...
asked by 05.02.2018 / 20:26