We have a web page which enables the users to compose email and send. The HTML composer we use is FCK Editor. When they compose and say send
- We validate the email and subject.
- To avoid the user not to further manipulate the form we hide the whole form and enable another DIV which says "Mail sending...Please wait"
- We submit the form
After the submit is done in the result page we say
"Mail sent successfully"
If we load large amount of HTML content in the FCK Editor and saye send. The result is as follows...........
We validate the email and subject
This happens fast
To avoid the user not to further manipulate the form we hide the whole form and enable another DIV which says "Mail sending...Please wait"
This Div is not enabled
We submit the form
This is taking more time to submit. Until form get submits the "Mail sending...Please wait" div is not shown.
Is there any way we can solve this, either the submit should happen fast or else the DIV should be shown so that there will be a communication to the user that it being processed.
There is a DIV named main_div in which we have
- To Email - Text Box
- Subject - Text Box
- HTML editor - FCK Editor
- Send - Button
We have another DIV named loadingDiv which has
"Mail sending...Please wait"
When send is clicked here is the java script we call
function sendMailClick(form,temp) {
document.getElementById('main_div').style.display = 'none';
document.getElementById('loadingDiv').style.display = 'block';
form.api.value = temp;
form.submit();
}