TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
611
127.9k
Sweet Aleart Success Message.
Sep 7 2020 11:02 PM
How to show success message after upload file using sweet aleart.
function validateData() {
debugger;
if ($("#CategoriesImages").val() == "") {
sweetAlert("File Shouldn't Be Empty!!", "Please select file", "error");
return false;
} else if ($("#Name").val() == "") {
sweetAlert("Please Enter Category Name!", "", "error");
return false;
} else {
swal({
title: "Confirmation?",
text: "Are you sure you want to Upload this File?",
type: "warning",
confirmButtonClass: "btn-danger",
showCancelButton: true,
confirmButtonText: "Yes !",
closeOnConfirm: false
},
function (isConfirm) {
if (!isConfirm) return;
$.ajax({
success: function () {
swal({
title: "Done", text: "It was Successfully Uploaded File!",
type: "success"
}, function () {
location.reload();
});
},
error: function (xhr, ajaxOptions, thrownError) {
swal("Error Uploading File!", "Please try again", "error");
}
});
});
};
It's me code it's working but success message not show after upload file
Reply
Answers (
3
)
AADSTS700016: UnauthorizedClient_DoesNotMatchRequest
Nhibernate generic method to Query different Model