Questions tagged as 'javascript'

2
answers

Infinite Javascript loop for a web page [closed]

I have a question, can you write a while(true) in HTML5 with javascript? I await your answers and thank you in advance for your help, regards.     
asked by 31.08.2017 / 09:40
1
answer

Vimeo Player API "Failed to execute 'postMessage' on 'DOMWindow': The target origin provided () does not match the recipient window's origin ('')"

I have a CPT in wordpress that shows a iframe of vimeo inside a fancybox, until there all ok. I have integrated the API player Vimeo, to trigger functions in the events, at the end of the video I show another layer different from the initial one...
asked by 27.09.2018 / 14:46
1
answer

Video Background with Javascript

I have been doing a background through JS that changes according to the time of day, and I have a doubt. The background It works like this: - I have a video that runs from 7 am (example: 07:00:00) and when the night comes (19:10:12) I need to...
asked by 04.10.2018 / 20:36
1
answer

subtract values from an array and add another value [closed]

I have this array: var distanciaCentroUltimo = [790,850]; var tamaño = 2455; by means of a for, how do I make the following?    2455-790-850 = 815     
asked by 21.04.2017 / 20:59
1
answer

Failed to instantiate child component in React.js [closed]

I always did HTML and CSS. I am starting to study React and I honestly do not understand the reason for the error. It is very basic and I wanted to know if someone can explain it to me. Thank you very much !! import React from 'react'; imp...
asked by 06.12.2017 / 20:52
1
answer

What am I doing wrong in this exercise?

I want to know what I am doing wrong in this exercise, since I have tried several ways and always gives an error. Thanks! Ok, here goes the written code, sorry for that detail! Of course, the issue is that although some results are corr...
asked by 06.01.2018 / 17:51
2
answers

Transform one json into another with JavaScript

I have a json returned with the Google Vision API that is the result of the upload of 3 different images, but in the same upload ... [ { "errorMessage": "", "errorStatus": false, "fileMimeType": "image/jpeg", "fileName":...
asked by 30.10.2017 / 14:42
3
answers

How to assign the textbox value to a javascript variable?

I have my text box in html : <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="200px" Width="1000px" BackColor=""></asp:TextBox> and I want to assign the value to a variable that I have in Javascrip...
asked by 15.03.2018 / 17:00
1
answer

Problems with JavaScript [closed]

I'm having problems declaring the current route the end user is in     
asked by 08.03.2018 / 23:18
4
answers

The operator does not work || [closed]

I'm new to learning JavaScript and I'm doing internship but I do not get this right: var estatura = 1.70 var edad2 = 30 if( edad2 == 30 || estatura = 1.60){ document. write("true");} else{ document.write("false");} I marked it as a...
asked by 07.03.2018 / 18:41