Questions tagged as 'callback'

2
answers

Callbacks explanation of how it works

Hello, I'm new to this and I'm not entirely clear on how this code works, first print 'start', then 'finish' and then the callback since it is in an asynchronous subprocess, right? but I do not understand the syntax of suma(5,6,function(result...
asked by 09.04.2018 / 14:47
3
answers

Control function flow in AJAX

I have several AJAX functions and what I want is to have a function that controls that when one is finished, execute another one. This is the scheme. function ajax1(){} function ajax2(){} function ajax3(){} //solo cuando termine ajax1 ejecuta...
asked by 28.10.2016 / 10:53
1
answer

How to make a request $ http.get be completed before another in angularjs

I have a problem with the services in angular and it is that I am calling a function with request $ http.get inside a service that also makes request $ http.get. This is my code when I check, if you see inside it there is a function called s...
asked by 05.09.2018 / 17:15
1
answer

delete callback history Android

I have an application which consists of 3 activities, A , B , C , I already have in onBackPressed of B and C return me to A : Intent intent = new Intent(this, MainActivity.class); inten...
asked by 11.12.2017 / 21:08
1
answer

Problems to create a callback

Hi, I am doing a test on the use of asynchronous functions and we are seeing Callback, they give me the following statement:    Implement the "callback" function to receive a number and what   print by console. Use that function to iterate ov...
asked by 07.12.2018 / 17:43
0
answers

Datatables footercallback does not work

My datatable works very well, it does not show any errors in the console even after I added footercallback as the example of the official datatables page shows link . However, it does not show me the sum of the totals. What I could notice is...
asked by 22.07.2017 / 05:50
2
answers

this is undefined in addEventListener Callback

Hello, I have the following html code: <nav id="myNav" class="nav has-shadow"> <div class="nav-center"> <a class="nav-item is-tab is-active">Ingresos</a> <a class="nav-item"><h1 id="myTitle"...
asked by 20.07.2017 / 02:46
1
answer

Query with Node Js and MariaDb

I'm trying to do a query with Node and MariaDb , but I'm getting this error:    GET / - - ms - -   (node: 3244) UnhandledPromiseRejectionWarning: Error: pool is closed       at Object.module.exports.createError (/Users/dmn/Desktop/apirestI...
asked by 06.12.2018 / 17:01
1
answer

Error linking an adapter callback to my recycler

I hope you can help me, I have an adapter of a recycler in which I want to send a callback to its fragment that contains it, but I have a problem when linking the adapter. MY ADAPTER public Cartadapter2(Context context, List<Cart> car...
asked by 29.10.2018 / 19:35
0
answers

callAsync AndroidStudio XMLRPC

I'm making an asynchronous connection in an android app, but when I put the credentials and login, the app closes. However if I make a synchronous connection it works perfect. Error: E/AndroidRuntime: FATAL EXCEPTION: Thread-4148...
asked by 27.04.2018 / 09:32