Questions tagged as 'javascript'

1
answer

Angular4 wait for callback to API without timeout

If you can help me, please. I need to make a call in the API but there are a lot of data and I want Angular to wait for this term, at that moment I put a promise but it does not wait and as long as the API is handling the data on the NodeJS s...
asked by 23.07.2018 / 15:21
0
answers

TypeError: callback is not a function

I'm doing two queries from bd and I want to move to the page but give this error:    TypeError: callback is not a function The code part is this: connection.query('SELECT * FROM marca;SELECT * FROM tipo', function(err, results, fie...
asked by 23.07.2018 / 17:59
1
answer

Close sidenav when width is less than 700

I have a sidenav of angled design material that I need when the width is less than 700, open the screen with the nav closed, and when it is larger than 700 the screen can open with the nav open. I tried something like: @ViewChild('sidenav'...
asked by 22.07.2018 / 19:24
1
answer

Doubt on query with parameters using AngularJS and http request get method

First, good afternoon. I have come to ask for your help because I have spent some hours looking for a solution and nothing. I'm trying to limit the SELECT * from financial list to the value set in the select field inside my form (HTML), for e...
asked by 22.07.2018 / 22:11
1
answer

I need to play a php variable in javascript

I have a code where I need to put a variable inside a javascript that is the ID of the person I'm pulling, but I can not find the solution. Where am I going wrong? <?php echo " <tr> <td>".$row['no...
asked by 21.07.2018 / 14:13
1
answer

Check with JavaScript a Select Multiple field if it has value

I have two multiple select's as if they were a De > To, in the "From" I have email list coming from bank with Classic ASP, I can already pass the emails to the select "To" but I can not get the emails in the transport function, I would like t...
asked by 21.07.2018 / 00:08
0
answers

Javascript WebWorkers

I'm studying a bit of webworkers and I created this scenario: <html> <head> <meta charset="utf-8" /> </head> <script src="index.js"></script> <script src="Http.js"></script> <body...
asked by 08.08.2018 / 19:53
0
answers

How to prevent playback of videos contained within the Jwplayer Playlist

Hello, I would like your help to try to solve this problem. I'm trying to avoid running the videos contained within the Jwplayer playlist when they are clicked, because I'm using a link redirection process, and opening the video is delaying page...
asked by 08.08.2018 / 21:47
1
answer

Perform tests based on component lifecycle

I need to run the tests following the lifecycle of the Angular. I could not identify any tool or way to do this. Basically it would call the tests based on lifecycle. Here's a simple example: my-component.ts : import { Component } fro...
asked by 08.08.2018 / 20:08
1
answer

Calculate values with Inputy type="range" and JavaScript

Expensive, hello. I need to do some calculations using the input type="range", but I'm not able to run the code on my machine, just in online publishers and would like to know why this occurs? I use windows 10 and the text editor is notepad +...
asked by 08.08.2018 / 21:13