Hi, i made a php application that shows the results with ajax (without page reloading), the request it's made in 30 sec, it;s too much and the user will think that the application doesn't work, so i want to put a preloader or a loading script. PS: i searched on google and i found just 2-3 scripts that don't work. Thanks.
Well with ajax you have a specific portion of the html you are setting to the returned text, yea? Why not- before you initiate your socket- just set that portion to "Loading, please chill. . ." You could even make a neat little timer that starts when the function is called and ends when the socket is finished, something that updates the text so the user knows data is being processed. (Or even an animated gif. . .) Wouldn't be hard at all to do, and if you post the link I can give you the updated code to do it. ~Todd
Thanks for the advice with jquery, i found a tutorial here : http://jetlogs.org/2007/07/08/jquery-preloaders-using-the-form-plug-in/