Questions tagged as 'javascript'

1
answer

How to solve this jade error?

I'm just getting started on nodeJS and I'm using JADE as view engine , I'm just doing tests, nothing extraordinary, and yet throws the following error: C:\Users\Familia\Documents\node\expres\node_modules\promise\index.js:1 (function (exports,...
asked by 01.04.2018 / 23:25
1
answer

See Thumbnails with the Google Drive API

How can I see the thumbnails of my images from google Drive ? That is to say, that the api of google drive returns the url of the thumbnail. I also use jquery , if necessary or to facilitate it. <html> <head> <...
asked by 21.12.2015 / 19:45
1
answer

Select Items of a Select Multiple in laravel JS

View <div class="form-group"> <label class="col-sm-3 control-label" for="exampleInputEmail1">productos para la orden:*</label> <div class="col-sm-5"> {{ Form::select('products[]', $products, null, ['id' =...
asked by 12.05.2016 / 21:26
4
answers

Block Internet Explorer

How can I block Internet Explorer on my page? I need to avoid using my website with Internet Explorer 9 or less     
asked by 15.02.2016 / 19:00
2
answers

How to know if a date is over two months in JS [duplicated]

Good, I have two dates in string type, such as the following: var fecha1 = '2018-11-03'; var fecha2 = '2018-02-03'; And I want to know which is the most efficient code to compare those two dates and know if the difference of months is 2 o...
asked by 18.12.2018 / 11:31
4
answers

Error when traveling with forEach

Why is it telling me that forEach is not a function? What I do is get the elements with class 'classes' and then assign each one an onclick event, but it does not WORK window.addEventListener("DOMContentLoaded", () => {...
asked by 25.09.2017 / 12:15
5
answers

The var is not saved in js

I have the following code in js, which does not save the input information in the variable. At the time of activating the function show () it returns me that the variable x is not defined function crear(){ var x = document.getElementBy...
asked by 03.08.2018 / 16:49
3
answers

What is the difference between using LET instead of VAR in JavaScript? [duplicate]

As the question says, which is more optimal and why?: let carro = "subaru"; var carro = "subaru"     
asked by 19.06.2017 / 16:55
3
answers

There is some way to load JavaScript before PHP

Before someone throws me around the neck I have to say that I know that PHP is loaded on the server and builds the page, that after this the client loads the resulting HTML with its JavaScript and its events. Having said...
asked by 26.06.2017 / 09:56
3
answers

Difference between undefined and null in JavaScript

What is the difference in JavaScript between a variable undefined and a variable null , how can I know if a variable is null , undefined or both, I would also like to know if they are the same.     
asked by 24.11.2017 / 16:51