When the message is sent, an ajax callback (jquery incase it interests you) is made posting all relevant variables to the php file which will batch send the message. When the callback is made a 'loading animation' fades in, then 'onSuccess' the script returns the relevant success or failure message to the page and the loading animation fades out.
Code: Select all
$('#LogLoad').fadeIn();$('html, body').animate({scrollTop:0},1000);
$.ajax({url:'PRO_mail.php',type:'POST',datatype:'script',data:$(this).serialize(),success:function(data){
$('#LogResult').html(data);},error:function(){alert('An error occured - please try again!');,
complete:function(){$('#LogLoad').hide();$('#LogResult').fadeIn();RefreshLC();}});
Ideally when the process is occuring I'd like to see a status such as 'sending to 4 of 685' which updates in realtime or refreshes every few seconds to show the latest 'sending to 17 of 685' status.