Questions tagged as 'javascript'

1
answer

Read JSON and print in html with angularJS

I am trying to print the data from a JSON file in html using AngularJS, running everything by XAMPP and in my htdocs / test folder has 3 files (index.html, main.js, test.json). The console does not show any errors, I even tried to debug by firef...
asked by 21.05.2016 / 14:22
1
answer

How to pass php variable as a parameter in a JS function call

Hello, I want to pass a php variable, as a parameter in a JavaScript function call. This way: <a href="calcular($numero)">Calcular</a> I have tried to do this: <a href="#">#
asked by 01.10.2016 / 22:04
1
answer

Interface GET and POST Method with Angular + Node.js

I have some beginner's doubts and I wanted to help you. I created a Residential Automation, based on Microcontroller + Node.js + Angular.js. Communication of the Angular.js with the Microcontroller is OK. But I will also do the reverse. In wh...
asked by 04.10.2016 / 15:01
1
answer

Problem with loop for in JavaScript

I want the loop below to show all even numbers that are less than or equal to it, but I can only get it to show the last number. If I type 40 and it returns only 2. <div class="calculo"> <input type="number" id="num1" placeholde...
asked by 26.03.2018 / 06:59
2
answers

Array returning Undefined because of asynchronism

I'm accessing the Trello API , but I came across the following problem: Access the Trello information, obtaining the id of each existing queue, the code is as follows: var x; var numberCardsByList = []; trello.get("/1/boards/[idBoard]/l...
asked by 23.05.2016 / 14:31
2
answers

How do I get json response in javascript / jquery?

I have the link: https://dominio.com/apiJSON.php?data={"login":"[email protected]","senha":"Minhasenha","campanha":"ID 1234","mensagens":{"1":{"numero":2799999999,"msg":"Uma mensagem qualquer","data":"2015-10-19 01:07:52"}}} By pasting this l...
asked by 23.05.2016 / 13:56
1
answer

Creating Paging in Strings with Javascript

I'm creating a code for paging the contents of a new String(); with Javascript, warning in advance, which is a run-time paging compared to a pagination performed by ASP or PHP. It consists of listing a certain number of rows from new S...
asked by 22.05.2016 / 21:12
1
answer

How to display a clock by rotating the hundredths of seconds

I need to create a game that looks like a bingo. It has to show a clock in the hundredths of a second. Each member of the game receives a card with several numbers from 0 to 99 and he has the option of trying to stop the clock on a number he...
asked by 19.10.2016 / 21:53
1
answer

What is the need for __proto__? [duplicate]

What is the need for "__proto__" in an object? I just ran tests and realized that "__proto__" is not a property, but it can be indexed. When I define a property in x object, this property is also available in "__proto__"...
asked by 13.10.2016 / 20:01
1
answer

pass variables to view EJS from different queries

I'm starting with node / express etc. Create a site with the intention of learning and I need help. I have a mysql query that is sent to an EJS view via the code below: app.get('/', function (req, res) { connection.query('SELECT actor_id,...
asked by 14.07.2016 / 07:09