Questions tagged as 'javascript'

2
answers

Group elements of a JSON

I have the following JSON, which each record has a city, but the same city can be in many records at once. { "data": [ { "numero": "123", "nombre": "jorge", "ciudad": "Tokio" }, { "numero": "222", "n...
asked by 09.08.2018 / 16:13
1
answer

How to show only some javascript object data

I have the following code: // ARREGLO producto = [ { n: 'Jabon en Pasta', az: 1, ro: 0, am: 0, bla: 0, c: ' ', v: 0, t: 'sol', grupo: 'No Incluidas' }, { n: 'Ambientador', az: 2, ro: 1, am: 0, bla: 0, c: ' ', v: 0, t: 'liq', grupo:...
asked by 05.08.2018 / 22:47
1
answer

Add items with a button that are already added by drag and drop

I have the following drag and drop code, for now elements are added from div1 to div2 by dragging or draganddrop, I want to add that in addition to being added by this form they are also added by a button that is located to the left of the eleme...
asked by 04.08.2018 / 21:33
1
answer

Javascript does not read functions, or does not work if it does not return false

It is supposed that my function should calmly replace the content of each element detected by the each, and in turn, also look for the appearance of attachment to later perform a function with each attachment sought, but not what works within...
asked by 05.08.2018 / 22:11
1
answer

Javascript: Request a number with prompt, if it is different from 0 duplicate and show alert, if it is equal to 0 avoid loop

I put the following code, I only run one round numero = prompt("Escribe un número") var multiplica = numero * 2; while (numero != "0") { alert (numero*2); }     
asked by 23.07.2018 / 23:11
3
answers

How to iterate this javascript object in C # (or the correct way to send with AJAX) in ASP.NET

From a table where the user can add, delete and modify their values, you get a data type like the one shown below (which I can not change its format or data type) [here the code of the table ]: var info = [{ nombres: 'Juan',...
asked by 25.07.2018 / 00:42
2
answers

How do I get the value of a child element from a div

Hi I would like to know how to extract the value of a <input id="tipo"/> child from a <div class="box-header"> these elements of DOM are repeated but not their values, the values are used to set a local storage,...
asked by 23.07.2018 / 19:42
1
answer

Capture with JAVASCRIPT img src=".. base64" without Id, name or value

I need your help, days ago I'm searching the internet, tutos and demases as they capture "JAVASCRIPT" (Exclúyase JQuery) the content of an img tag that contains as src a captcha in base64 format, but has no Id , name or value to refer to throu...
asked by 22.07.2018 / 18:42
1
answer

Show JSON with API from Angular 4

I try to show my Object from a GET service but I can only see [Object] [object]. Service: return this.http.get('http://localhost:3000/words').map((res: Response) => res.json()); Controller: export class WordsComponent implements OnI...
asked by 23.07.2018 / 13:44
2
answers

how to capture the click event of the span

I have the following javascript function: function LoadDataTable(data) { $('#table-labresult').bootstrapTable("load", data); $table.bootstrapTable('refreshOptions', { pageSize: 5,...
asked by 23.07.2018 / 14:00