Forum Moderators: open
so my problem after i display the "loading message" is that i cant know when the ajax php function have finished to set the loadin message to display:none......
javascript function:
if user choosed this
{
set load message to inline;
call ajax function();
set load message to none;
}
so this code set the load mess. to inline then none BEFORE the ajax function finish loadin cuz its workin in the background!
hope someone got me and can help..
thanks in advance
onload only works for the window, images and occasionally frames.
So, please disregard my earlier suggestion. :(
You are presumeably using an asynchronous request, so you can put your message hiding statement(s) inside a callback function that is called by the onreadystatechange event[jibbering.com...]