I am having trouble how do i use the delay before sending a request,what i want is to delay about 3secs to show my loading bar and make a request to server.
i tried this
beforeSend:function() {
<div><img src=“loadingbar.gif”></img></div>.delay(3); //3 seconds.
}
I have some question about when do we use beforeSend() ?..i thought this is use by some website that i had seen that will display something like this “please wait…” when we submit some forms to the server…so in my point of view of this did they also used setTimeout ?please correct me if i am wrong.