Questions tagged as 'javascript'

2
answers

How to store the value of a json result, remove it from the ajax and convert it to global? [duplicate]

I need the user's data that I'm getting via ajax using json and store them in a variable so I can use it outside of ajax. The user data variable should store the data but when the stored ones are only displayed while it is inside the ajax and...
asked by 12.10.2018 / 04:44
1
answer

How to copy elements from one container to another in javascript?

I am working on a web service with HTML, CSS and JavaScript. I have a list in a certain one with a fork where each item in the list is an image. In each of these images you can click. The idea then is that you can click on each image and pass...
asked by 11.10.2018 / 21:45
4
answers

add counter value to the input id

Hi, I've been trying to solve this problem for several days, I hope you can help me. I have a button that when you click on it adds a new row to a table. <input type="button" class="btn" name="btn_agrega_fila2" id="btn_agrega_fila2" valu...
asked by 26.10.2018 / 19:02
1
answer

Center Modal Window window.open with JavaScript

I would like to know how to center a modal window made with window.open horizontally and vertically, what I have is this: var myWindow ="wa.me/…?"; window.open(myWindow, "", "width=600,height=400");     
asked by 18.10.2018 / 03:42
1
answer

Add amount with javascript

I am working on a project to make a lucky spinner. Roulette is composed of several sections. Depending on which section you fall, a text is generated on the screen that tells you what you have won or lost. The idea is that as long as you fall...
asked by 16.10.2018 / 20:08
1
answer

Show alert with a Gauge chart

Dear, I currently have a gauge chart on my page which works, my question is how can I do so that when I click on a meter an alert is raised? I'm working with this code <html> <head> <script type="text/javascript"...
asked by 17.10.2018 / 13:24
3
answers

JSON sent from PHP and read it in JAVASCRIPT

I have implemented a function in javaScript that takes the indicated value and then queries it with php in the database but when I came back with a php JSON and read it in javaScript I can not get the data JavaScript Code: function capturar...
asked by 06.10.2018 / 12:47
1
answer

Read Json in js

I have the following arrays in php $api = array( 'PlnDir' => $PlnDir, 'Agr' => $Agr, 'Emp' => $Emp, 'Admin' => $Admin ); $datos = array( 'menuPV' =>...
asked by 02.11.2018 / 23:18
1
answer

Collect in an object the responses received from 3 URLs via fetch

Good I am trying to compile in an array the objects that I get from the calls fetch () at 3 url. let log = console.log; let datafile1 = fetch('http://s3.amazonaws.com/logtrust-static/test/test/data1.json'); let datafile2 = fetch('http://s3.ama...
asked by 19.09.2018 / 15:07
1
answer

Help with consultation in AJAX

I am using ASP.NET, C # and AJAX. What I need to do is send a number of n questions for an exam, where that amount n is a number that the administrator previously registered in a form that sends the data to a database. I already managed to g...
asked by 01.10.2018 / 17:24