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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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'; Quote Link to comment 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.