Questions tagged as 'javascript'

1
answer

convert array to Map in javascript

I want to convert an array to Map (), in this console "console.log (arrayParaMap);" sale undefined the example I use is this // example {a: 1, a: 2, a: 1, b: 1, b: 5, b: 6} the map I intend to obtain is [a, {1,2,1}                               ...
asked by 17.09.2016 / 03:10
2
answers

Error: Uncaught TypeError: url.indexOf is not a function by Jquery

In the browser, I check in inspect item, and I get the following error:    Uncaught TypeError: url.indexOf is not a function I imagine it's because of a function I use Jquery, which is the following: var baseUrl = '<%= ResolveUrl("~/...
asked by 19.08.2016 / 04:41
2
answers

How to validate array checkbox

What a good day, someone could tell me how it can be done so that when I press the "DOWNLOAD" button if it is empty that does not redirect me to the other page and if at least there is a checkbox activated and press "DOWNLOAD DATA" if you...
asked by 24.08.2016 / 20:32
2
answers

Use of js and c # in unity. Equal performance?

I'm starting with unity. And I see that you can use c # and js to program. My question is whether both c # and js would have the same performance. And if js can do all the functions that c # can do.     
asked by 25.08.2016 / 22:04
1
answer

Sort a JSON array

Previously, in this link I asked for help to make a kind of top of users sorted by their score, using a JSON file defined as let points = JSON.parse(fs.readFileSync('./points.json', 'utf8')); With the following format: { "242043489611...
asked by 22.12.2016 / 12:14
2
answers

Control of the keyboard with jquery to control numbers?

if (event.shiftKey) event.preventDefault(); } if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9) { } else { if (event.keyCode < 95) { if (event.keyCode < 48 || event.keyCode > 57) {...
asked by 16.12.2016 / 04:02
3
answers

activate elements in several forms at the same time

I have a page with three forms. All the elements are deactivated except the input that heads each form. I need to enable these elements so that they activate and deactivate each form. If it were a single form it would be simple with document.for...
asked by 09.08.2016 / 22:56
3
answers

print script tags on a div with jquery

I would like to know how to print script tags in the html with jquery     
asked by 03.08.2016 / 02:06
2
answers

How to validate the number of digits entered in an input type number?

I am using bootstrap jvalidator but I can not validate the number of digits entered in an input type number <div class="form-group"> <label class="col-sm-2 control-label coLor-letter" for="textinput">No Vin</label> &l...
asked by 04.08.2016 / 08:12
4
answers

How to put a full-screen background image

How can I make the image cover the entire screen size? I know that the property min-width and min-heigth but they do not make me achieve what I require. this is an example of a slider but I do not want a slider...
asked by 18.08.2016 / 00:33