Questions tagged as 'javascript'

2
answers

Find the indexOf between two array in JavaScript with a forEach

I would like to know how to find the indexOf in JS between two array , a array contains the given values and the other array the values that I want to know your indexOf var act = [10002197,1000175...
asked by 14.01.2018 / 20:39
1
answer

datatable.net preserve line breaks in exported documents

I am using the plugin: datatables.net I have tried to preserve the line breaks when exporting to excel, PDF or Print but it does not work for me: stripNewlines: false Update Script Script: $('.DataTable3').DataTable( { "aut...
asked by 10.01.2018 / 16:54
1
answer

I'm not sure why it gives this result (4320)

I do not understand why this result gives me, someone would explain to me a little the why of this result please? function a(n){ if (n === 0) { return 1; } else { return a(n - 1) * n; } } console.log(a(8)); // => 4...
asked by 09.12.2017 / 02:40
1
answer

Display an alert when inserting a duplicate product in the database

I have a question, I want to add a product to a database and when this product exists there is an alert that says "this product is already in the database", a question that I have achieved quite well except that when this warning comes out, is r...
asked by 04.04.2018 / 23:00
1
answer

Problem when concatenating a variable with javascript text

In the function cv () a string is stored in the variable send (global variable) and I have problems so that it is concatenated within the letters.forEach () function, does anyone know why? var tablero = document.getElementById('tablero'); var...
asked by 31.03.2018 / 05:28
1
answer

ASP.net pass onclick values to another page

On the first aspx page I have 2 buttons with difficulty for my game (normal and difficult) <div class="modal-body"> <asp:ImageButton id="normal" ImageUrl="~/images/flecha_atras.png" class="flechaAtras" onclick="normal_Click"...
asked by 05.04.2018 / 19:04
1
answer

How can I run a controller without opening the view?

I am working with AngularMaterial specifically with $mdDialog when I enter the dialog my controller works, now what I need is to be able to run the controller without opening the view of the dialog. this is the function that contains the...
asked by 28.09.2017 / 20:27
1
answer

How to create the links so they can share my website?

I have some buttons created with the help of @Luis Daniel Rovira Contreras , @delCano , @azeós , but I'm still looking for documentation on how to create the necessary code so that the visitor to my website can share it with th...
asked by 21.12.2017 / 18:33
1
answer

how to use a Script in two html files

I hope you can help me or correct me if I am wrong .. I would like to know if it is possible to use the same javascript in two different html files, without losing the values of the variables that would be generated from the first tab when using...
asked by 22.12.2017 / 23:25
1
answer

Jquery and Javascript slot machine does not work

I am programming a swallowing machine with javascript and jquery, I am unable to find why the images of the slots are not updated ... Then I explain the code: <html> <head> <meta charset="UTF-8"> <title>MaquinaT...
asked by 12.03.2018 / 00:00