How can I use jQuery blockUI to display a variable
I am using blockUI to display a waiting message while an ajax request is submitted. When the ajax request returns successful I am using blockUI to show a successful message. Within that message I would like to display the contents of data.message but I am unsure how to do this.
This is the ajax success code...
success: function(data) { if (data.status == "success") { alert("SUCCESS " + data.message); //Used to test variable $.blockUI({ message: 'SUCCESS' . data.message }); setTimeout(function(){$.unblockUI; window.location.href = "index.php"; }, 3000);
Open in new window