Lyleyboy Posted October 20, 2009 Share Posted October 20, 2009 Hi all, I was wondering if there is a way (Sure there is) of showing a message or an image while a page is loading. The issue is that I have a big table and I'm running some queries against it. Obviously the query results don't appear immediately but in the mean time the page doesn't display anything. Any thoughts? Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/ Share on other sites More sharing options...
Alt_F4 Posted October 20, 2009 Share Posted October 20, 2009 Hey there, I would look into ajax for this if i were you. This way you could display a busy icon while your page is being loaded. Also if you have several different queries being run on the table you could use ajax to execute each one so that the page would display the results of each query as it executed and not wait for all the queries to be executed before displaying anything. Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/#findComment-940232 Share on other sites More sharing options...
Lyleyboy Posted October 20, 2009 Author Share Posted October 20, 2009 Not a bad idea. Aw nuts. Something new to learn... Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/#findComment-940233 Share on other sites More sharing options...
Alt_F4 Posted October 20, 2009 Share Posted October 20, 2009 if you want ive got some basic scripts that would probably do the job (with a bit of tweaking) let me know and ill post em up Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/#findComment-940249 Share on other sites More sharing options...
Lyleyboy Posted October 20, 2009 Author Share Posted October 20, 2009 That could help if you don't mind. I have no clue at all with AJAX. Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/#findComment-940253 Share on other sites More sharing options...
Alt_F4 Posted October 20, 2009 Share Posted October 20, 2009 sweet, give me a bit and ill track them down Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/#findComment-940256 Share on other sites More sharing options...
Alt_F4 Posted October 20, 2009 Share Posted October 20, 2009 sorry I cant find them try this script tho, it will get you going with the preloader http://www.ajaxf1.com/download.html?item=11 Link to comment https://forums.phpfreaks.com/topic/178312-php-mysql-page-loading-notice/#findComment-940270 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.