ethan6 Posted June 17, 2009 Share Posted June 17, 2009 Hi, what I want to do is have a message/small graphic displayed while php input data is being processed from my users, and I was just wondering if this is code that can be found in PHP or if I should look elsewhere, such as javascript? Any ideas? thanks! Quote Link to comment https://forums.phpfreaks.com/topic/162564-processing-dataplease-wait-message/ Share on other sites More sharing options...
RussellReal Posted June 17, 2009 Share Posted June 17, 2009 javascript and AJAX would be better, and when you go into the page you'd want a plain html page and then the jsloading graphic, and then with AJAX trigger the php script to run, when the php script returns data that means that the processing of the data is complete and then AJAX will either find an error or not, if no error, remove the graphic and do whatever iwth the data from PHP, or, if error, display the error.. AJAX really owns but no you can't make a loading screen with php.. Quote Link to comment https://forums.phpfreaks.com/topic/162564-processing-dataplease-wait-message/#findComment-858001 Share on other sites More sharing options...
ethan6 Posted June 17, 2009 Author Share Posted June 17, 2009 hey thanks.. since i haven't really worked with AJAX before, do you think you could give me any more specific links or code I could look at? i did find some code here, could you maybe look at this and tell me if it'd be any good? http://www.dynamicdrive.com/forums/showthread.php?t=38639 thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/162564-processing-dataplease-wait-message/#findComment-858008 Share on other sites More sharing options...
ethan6 Posted June 17, 2009 Author Share Posted June 17, 2009 i did end up using that code.. it works nicely now http://myipodbroke.com/repair3a.php Quote Link to comment https://forums.phpfreaks.com/topic/162564-processing-dataplease-wait-message/#findComment-858014 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.