Hi Daniel, I like this plugin pretty much and i'm using it in my current project.
Anyway I found one big disadvantage if I compare it with the default alert() function.
I was using an own check() function to determine if an object shall be deleted:
function check() { return confirm("Are you sure?"); }
Using your plugin it looks like this:
function check() { return apprise("Are you sure?", {'verify': true}, function(r){ return r; }); }
As you see, the apprise-callback should return true or false, so would do the check()-function. But it does not!
Look at this:
function check() {
var test = apprise("Are you sure?", {'verify': true}, function(r){ return r; });
alert(test);
}
At first an empty alert appears, then the apprise appears.
Maybe I'm doing it wrong or maybe this needs a fix ;)
Best regards from Germany,
Raphael