Closed cissemy closed 7 years ago
Why are you doing this??
setTimeout(function () {
bgGeo.finish(taskId); // <-- execute #finish when your work in callbackFn is complete
}, 1000);
You're supposed to understand that setTimeout
there merely a SIMULATION of a long-running task, like an Ajax request. You're not actually supposed to wrap bgGeo.finish
in a setTimeout
$.post(url, function(response) { // <-- long running task
bgGeo.finish(taskId);
});
Custom JSON templates apply only the plugin's own HTTP service.
Yes, you're supposed to remove your Ajax post.
And btw, you're posting this issue at the wrong repo. Look at the README of this repo.
Right now i have the callback function
Do i have to remove my server call there and add :
? Thanks