Reputation: 11767
The title is confusing, so I'll elaborate..
I am working on a FaceBook box for my website, and when the comment is successfully posted, it displays an alert()
. I am wanting to get rid of the alert()
and instead, via jQuery, show and then fade out a div which will say the same thing as the alert()
box.
Here's my code:
}, function (response) {
if (response == 0) {
alert("Your FaceBook status has not been updated.");
} else {
alert("Your FaceBook status has been updated.");
}
showLoader(false);
});
Upvotes: 1
Views: 2250
Reputation: 18446
Take a look at http://thrivingkings.com/sticky/ or http://boedesign.com/blog/2009/07/11/growl-for-jquery-gritter/
Upvotes: 2
Reputation: 21466
While you can replace the native alert() functionality, you can not achieve the blocking effect that the browser's native alert() provides.
I suggest something like this, or take a look at this SO question.
Upvotes: 2