Questions tagged as 'javascript'

2
answers

How to detect if JavaScript is activated in the browser of the visitor of my page?

I am creating a website where the use of javascript is a priority, so I would like to know how to detect if the browser is running javascript when visiting my site, and if not, address it or give it the option to activate it immediately.     
asked by 12.01.2017 / 03:55
2
answers

Why does not my project with JQuery work on github pages? [closed]

This is my first project using JQuery that obtains data from an API and shows them link It works well in codepen, but when I uploaded it to github pages the requests to the API stopped working link If someone knows why the projec...
asked by 24.11.2016 / 16:05
2
answers

Error converting json to fix [closed]

I want to convert the variable a to fix but error goes out, how do I solve it? function minSum(arr) { console.log(arr); arr = Object.values(arr); arr = arr.sort((a, b) => a - b); var j = arr.length - 1; var sum...
asked by 12.01.2018 / 06:08
2
answers

jquery: $ (document) .on ("click" ...) executes the clicks of several selectors

Good morning, it turns out that the "click" events listen to both the selector that I'm dialing with $(document) and those that are above, even if they are not their children and are not called the same. To see it, I put the code of th...
asked by 12.01.2018 / 12:49
2
answers

Export class with express

I currently work full scripts for example: function comprobar(){ console.log('aqui el codigo'); } exports.permitir = comprobar; and I need to work with classes, something like this: class Comprobador { function comprobar() { consol...
asked by 25.01.2018 / 20:01
4
answers

How can I push a javascript fix of type {}?

I'm trying to generate a dynamic array of type {} tabla.each(function() { var ID = $(this).find('td:eq(0)').html(); var fechaingre = $(this).find("input[id*='dfi']").val(); var fechafin = $(this).find("input[id*='dff']").val();...
asked by 20.01.2017 / 11:12
2
answers

Random word generator with end

I'm working on a random word generator, I've made a word appear every time I press a button: <?php $frases = array( 1 => "Una lavadora", 2 => "Un movil", 3 => "Una muñeca", ); $numero = rand (1,3)...
asked by 04.02.2017 / 11:54
1
answer

How to fix the error function not defined

Hello, I have the following function: function comprobarCondicion(opcion) { this.value = opcion; if (opcion == '164.132.203.28:455') { } } If I put it in index.html , it works for me and if I put it in my main .js it...
asked by 10.02.2017 / 20:27
3
answers

How to make a query using AJAX from a ComboBox

I have a ComboBox that loads the option from the database. I need that when selecting any data, load the query, depending on the selected option, all this with AJAX.     
asked by 17.10.2016 / 04:53
2
answers

How to get MAC address from nodejs

I need to know if it is possible to obtain the MAC address of a client in NodeJS.     
asked by 17.10.2016 / 05:11