Questions tagged as 'callback'

1
answer

How to update the value of a variable within a callback?

I am creating a module with NodeJS and in this module I created a function that returns a value, this value being updated within a callback function. The problem is that this variable / value is not being updated. I would like to know how to sol...
asked by 07.10.2017 / 04:56
0
answers

Javascript - Callback control

I'm not sure how to ask that. I do not have much knowledge of JS, but come on ... The system here has an API that adds and manages elements on the screen. For example, just to illustrate: If I put API.adicionar(tipo.CampoTexto, "idNome", posi...
asked by 17.10.2017 / 21:29
4
answers

What is callback?

I see in many codes and even architectures the word callback, I see that it is in JavaScript functions. But what is it? How is it used? Why? I would like an example of actual usage.     
asked by 31.07.2014 / 00:14
0
answers

PTBR FATAL EXCPETION: main java.lang.RuntimeException - window get call back

I'm doing an application that needs to switch between screens and the following error appears: inicio.java: package com.example.deadsec.gerflores; import android.content.Intent; import android.support.v7.app.AppCompatActivity; i...
asked by 11.04.2017 / 22:03
1
answer

Return Values for Dynamic Forms in Delphi

I want to create an unlimited number of instances of frmPai (MDI) that is dynamically created as follows: class procedure TfrmPai.ShowForm; var frmPai: TfrmPai; begin frmPai := TfrmPai.Create(nil); frmPai.Show; end; When I close I ru...
asked by 03.04.2017 / 16:34
1
answer

Keyword callable in PHP

The keyword callable has been implemented since PHP 5.4. It provides a way to type an argument of a function, forcing the argument type to be callback . Example: function minha_funcao($a, callable $func) { return $func($...
asked by 15.08.2015 / 14:30
2
answers

Callbacks in JavaScript

I would like to understand something about callbacks! I know there are other topics on the subject, but mine is a simple question that is not clear to me yet. For example, let's say I have this array: ['Banana', 'Maçã', 'Melancia'] To go...
asked by 04.07.2018 / 14:59
1
answer

Callback is executed in the parameter

function requestAjax(url, metodo, data, successCallback) { $.ajax({ url: url, type: metodo, contentType: "application/json; charset=utf-8", data: JSON.stringify(data), statusCode: {...
asked by 10.07.2018 / 01:13
2
answers

Get callback response

How do I get / answer the callback here? const arr = ["Lucas"]; function minhaCall(sobrenome, indice) { return indice + 1 + ") " + sobrenome + " de Carvalho"; } arr.forEach(minhaCall) For example, I can not give console.log(arr.for...
asked by 20.11.2018 / 19:15
0
answers

Treat ERP Bling's json callback in Laravel

I'm having trouble handling the following json return from ERP Bling on Laravel: array ( 'data' => '{"retorno":{"pedidos":[{"pedido":{"desconto":"0","observacoes":"","observacaointerna":"","data":"2018-10-20","numero":"6462","vendedor":"M...
asked by 08.11.2018 / 03:48