JSHINER Posted May 23, 2007 Share Posted May 23, 2007 I have a page that may load up to 1,000 results. Now it has pagination, but still takes some time to load. Is there a way I could display a "LOADING..." image while the query is running? Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/ Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 i've said this time and time again... NO! php is server sided! it has nothing to do with the browser... now... if you use ajax/javascript, they are client side... to technically... yes you can... but not with php files directly. woah... that was wierd... posted in php, then moved to javascript while i was typing... lol Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/#findComment-259845 Share on other sites More sharing options...
JSHINER Posted May 23, 2007 Author Share Posted May 23, 2007 Sorry about that Taith - posted in the wrong forum ... just a habit I guess, 99.9% of my posts are here Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/#findComment-259847 Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 no problemo! i guess i'll excuse it then... seriousally tho... ajax would prolly be your best bet Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/#findComment-259862 Share on other sites More sharing options...
JSHINER Posted May 23, 2007 Author Share Posted May 23, 2007 Any suggestions / references I can use? I haven't done much with Ajax Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/#findComment-259907 Share on other sites More sharing options...
emehrkay Posted May 23, 2007 Share Posted May 23, 2007 the easiest thing for you to do would be to have a results div/tablecell etc and give it a bkg of a loading gif and just write your data over top of it Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/#findComment-259925 Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 nah... just create a div, with your loading image, then on your window.onload=init; in the init, just loading.style.display='none'; Link to comment https://forums.phpfreaks.com/topic/52645-loading-image-while-page-is-loading/#findComment-259933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.