Questions tagged as 'javascript'

3
answers

Why do not you show me the custom error?

I'm trying to run this custom error when typing but I do not get it window.onload = function(){ var cedula = document.getElementById('cedula'); cedula.oninput = Numeros; } function Numeros(){ var cedula = document.getElementByi...
asked by 01.01.2018 / 03:23
1
answer

I need to return an array of objects but my code only returns the last value of the fixes

Hello, I am programming a code that is returning the last value of each object that I store and what I want is for me to return all the objects in that array. Any correction? var names = ["messi","west","tom","harry"]; var types = ["perro","ga...
asked by 20.12.2017 / 20:42
2
answers

Javascript without extension .js? [closed]

If I have an external javascript and declare it in html, but this file does not have a .js extension knowing that it has scripts in it, would it be the same as the file that contains extension .js, in relation to performance?     
asked by 22.12.2017 / 15:38
1
answer

Different results when using different ways to traverse an array in JavaScript

The purpose of my program is to create two functions, some() and every() , which emulate the functions Array.prototype.some() and Array.prototype.every() , respectively. My code: function every(array, callback) {...
asked by 21.01.2018 / 17:47
1
answer

Mixitup.js filter

I am using mixitup for a restaurant menu, but I want that when the page is loaded it is filtered only in one of the menu categories instead of showing all the dishes, that is, I do not want the "all" The first thing that is shown is "areperia"....
asked by 14.12.2017 / 08:30
1
answer

Array in nodeJS loses its elements

Good afternoon, I have two array: usersConnected and users . I am working with NodeJS and Socketio developing a chat. To obtain the connected users I create a UID in LocalStorage same that I get through socketio....
asked by 13.12.2017 / 21:57
1
answer

Refresh in current date fullcalendar

I am working with full calendar but I have a problem, my calendar has data since 2016, and it is required to change several of the events, implement the edit event, all good, but the problem is that when I save a data and I'm in 2016, the page i...
asked by 08.12.2017 / 18:17
4
answers

How to compare two datetime using js?

How can I compare 2 date times ?, example: '2017-12-06 15:00' and '2017-12-06 14:00' to use it in a conditional. this is my code: var inicio = '2017-12-06 15:00'; var termino = '2017-12-06 14:00'; if(inicio > termino){ alert("Error!"...
asked by 06.12.2017 / 17:39
1
answer

Mark all day in Full Calendar

I am using the FullCalendar plugin, in which I show the attendance records of the users but only faults (Red) and delays (Yellow) , I show only the data per month:  In what I have doubts is how to fill the whole picture with a single color,...
asked by 16.11.2017 / 17:46
1
answer

Get access to iframe content?

What kind of friends I hope you can support me with some doubts I have. I am uploading a page in an iframe , and when I try to access the contentDocument it returns the following error DOMException: Blocked a frame with origin " link "fr...
asked by 16.11.2017 / 00:48