Questions tagged as 'javascript'

1
answer

Returning callback values in the main function - JS / NodeJS

I have a main function and a callback function inside it. I need that, depending on the callback return my main function returns something, note: function funcaoPrincipal(){ funcaoCallback(function(erro){ if(erro){ //re...
asked by 06.09.2017 / 17:01
2
answers

Waveform Graphic Canvas JS

How can I make a waveform chart using Canvas and JS . The example can help a little more:     
asked by 12.09.2017 / 18:09
1
answer

Doubts on the banner

This Banner is working correctly, but only wanted to understand this account: (bannerAtual + 1) % 3 being q: 'BannerAtual = 0' So, (0 + 1) = 1% 3 = 0,3333 .... does anyone explain to me why to be trading for value = 1 that would be the ne...
asked by 05.09.2017 / 00:29
1
answer

Calculation with function with return Javascript

I am developing a calculation that adds interest according to the number of installments, but it is returning the wrong amount. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Exercicio1</title&...
asked by 03.09.2017 / 17:07
1
answer

I am not able to run the currency mask through Jquery

I'm trying to set up my inputs with a monetary mask. I called the script as follows: <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> <script type="text/javascript" src="js/dist/jquery.mask.min.js"> $...
asked by 02.10.2017 / 22:50
1
answer

JSON returns STRING instead of ARRAY

The following code is returning an array as a string and therefore I can not distribute the data to popular flot chart. O PHP code: <?php include_once("config.php"); $viagemid = $_POST['id']; $results_array = array(); $sql = "SELEC...
asked by 04.09.2017 / 22:47
1
answer

Error: Uncaught SyntaxError: Unexpected token {with easyui

I'm developing an application with the easyui framework is hosted on azure: link repository of code: link but is giving error: Uncaught SyntaxError: Unexpected token { HtmlCpodigo<html><head><metacharset="UTF-8">...
asked by 04.10.2017 / 01:15
1
answer

How to use the aotext botepage plugin correctly

I'm trying to use this plugin here botepage The problem is that I can not insert any content inside the divs, on page 1 for example say that I want to put "hello" on page 2 say that I want to put "hi" as I do to assign page 2 to div two, pa...
asked by 02.10.2017 / 23:30
1
answer

problem with a function run when clicked enter

Hello, I have the following javascript function which is included in a php query and that is executed when giving a keyup in an input how do I execute only when the enter key is clicked? function insertchat". $row311['k'] ."(){ var dzx=...
asked by 30.08.2017 / 23:19
2
answers

How to open a page according to the link inserted in the input?

I want to make a form that when I put the address (URL) in a field and click the Send button go to the site entered in the field. How to do this?     
asked by 06.10.2017 / 17:15