my question is using this $.post method i am able to specify the url, variables that i am passing to a php file and a function that will be called when ajax is complete however what i need is function when the ajax is being processed so that i can show a loading image and error if an error occurs
is this the right way to show the loading div which has the loading image while the ajax request is being processed when using $.post
also the ajaxError is not working properly for example if i were to rename the php file in the server that i have mentioned in $.post or if i have a syntax error in the php file then the ajaxError function should be executed however i am getting a browser error message and the error div is not being displayed which i have created to show when an error occurs with $("#error").css("display","block");
how to fix the ajaxError function
Last edited by CloudedVision; 6 Feb 2011 at @ 01.14.