Questions tagged as 'javascript'

2
answers

Navigate array of objects until they reach their properties in js

I have a function in which I pass an element of type string and I want to compare it with a property that each object that makes up the Array have. If it matches, it returns true and false. function Carta(id, marca, puntos) { this.i...
asked by 24.11.2017 / 16:55
1
answer

Canvas HTML - How to load an image to a Canvas correctly?

Good, I have that problem in my code. I have managed to load an image on a canvas, but the problem comes when the images are very large . What's going on? The image appears on the canvas but cut (usually appears half up or something like that)....
asked by 24.11.2017 / 20:55
0
answers

Amcharts Export Plugin does not download the data correctly

The problem is when I set a time range and try to download the data in .XLSX format that feeds the Amcharts chart. According to a 2-year query should be 19 columns (Fixed) and 24 records corresponding to 24 months, when opening the downloaded...
asked by 24.11.2017 / 20:28
1
answer

Obtain and reuse a PromiseValue

The issue is that I need to get an arrangement with the available audio / video devices, but the function even if I print an array in the console, it does not return one to me, but it returns a promise. How can I get the value of a promiseValue...
asked by 24.11.2017 / 20:03
3
answers

How to align an image from Javascript?

Good morning, I'm trying to align (center) an image, but I can not get it. What am I doing wrong? var imagen =document.createElement("img"); imagen.src="ejemplo.jpg"; imagen.width="500"; imagen.height="300"; imagen.align="middle";...
asked by 25.11.2017 / 19:45
2
answers

add JavaScript to a page in drupal 7

I have a problem, I have to add a script to a page in drupal 7, but when I add the script in the content of the page it is not saved, how do I add a javascript to a drupal 7 page? Thanks in advance. attached image of how to add the script....
asked by 22.03.2018 / 21:15
0
answers

How do I manage SSL certificates in React Native?

I'm making an http request with pinch from the react-native-pinch library, it works with almost all those that have a valid certificate, except one (the one that is specified), I try to omit the certificate and neither the code: pinch.fet...
asked by 22.03.2018 / 20:45
0
answers

Creation of columns in Hightchart

Good morning, the example I should show is like the following link here is where the data is collected var chartseries = [{ name: 'Year 1800', data: [107, 31, 635, 203, 2] }, { n...
asked by 22.03.2018 / 22:37
0
answers

Send audio data (client) with Websocket for an Audio Streaming

I have the following code that sends the video: window.URL = window.URL || window.webkitURL; navigator.getUserMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedi...
asked by 01.11.2017 / 21:46
1
answer

What does the getView () function of SAPUI5 do?

Good afternoon, I am in full development of an application using SAPUI5, I have serious doubts with this piece of code and I would like to understand what each function does, what is really being done. this happens inside the "Controller" of...
asked by 01.11.2017 / 14:42