Questions tagged as 'callback'

0
answers

Callback Handlebars

Good morning guys, all bzl? I render a grid with Handlebars, after that, I need to adjust the height of the cards and activate another jquery plugin for a select options that is rendered by Handlebars. When I call the functions to adjust t...
asked by 23.10.2018 / 15:34
0
answers

Improve the performance of nodemailer with express (Node.JS)

Well I created an application in Node.js for sending emails via form, to test site I was using FakeSMTP , and the performance was up to speed, but after I "dockerizei" I realized that the return in the sendmail function is taking more than 5 se...
asked by 07.05.2018 / 22:30
0
answers

mqtt callback (char * topic, byte * payload, unsigned int length) esp8266

I'm using the mqtt communication protocol with esp8266 and there's this callback function it works great, but when I post a message with +120 characters it does not work, I wonder if I can increase the size of values I get send in this function...
asked by 16.05.2018 / 20:44
2
answers

React onChange is not firing

I have the following code: handleChange(event, module) { this.state[module][event.target.name] = event.target.value this.forceUpdate(); } render() { const handleChange = (event, module) => { this.handleChange(event, mod...
asked by 01.03.2018 / 00:00
0
answers

Is it possible to return a value inside a callback, without another callback? [duplicate]

Well, I have a function that returns a value for a callback, but I wanted it to return without this callback, is it possible? Function in question: function getProfile(id, fn) { var sql = "SELECT * FROM profiles WHERE ID in ('" + id...
asked by 31.08.2017 / 22:32
1
answer

Update with Resource AngularJS

Is the Callback method for resource.update on AngularJS ? Type, var instancia = Resource.get({id:1}, function(data){ instancia.$update({id:idModelo}, modeloAtualizado) }); This works, the registry is updated perfe...
asked by 29.03.2017 / 19:21
1
answer

callback of a server

Galera, I am involved in a project that requires the use of the Fitbit API. In my code, I redirect the user to the FITBIT website to authorize the use of the data. After authorizing, I need to get the URL to get the Oauth code. How do I make a c...
asked by 06.03.2017 / 22:22
1
answer

Grocery CRUD Callback

I need to set a message for the user, after validating a callback function, however, I do not enter anything referring. It has a generic message that fits the entire form, I want it by fields. I tried form_validation->set_message , b...
asked by 09.11.2016 / 17:46
1
answer

Problems using callback in a ws

I'm implementing integration with a WS that fetches data based on cnpj . When querying WS and requesting a callback , it returns me the following ERROR:    Uncaught SyntaxError: Unexpected token: I think you're having a misint...
asked by 24.03.2016 / 15:15
2
answers

Why use three parameters for this callback function?

I'm learning JavaScript, and I was recreating the function type forEach (using a for loop) within prototype of an array . And for that I used a callback function, below: Array.prototype.forEach2 = function (callback) {...
asked by 02.09.2018 / 22:57