Dorky Posted October 19, 2009 Share Posted October 19, 2009 i was wondering about the potential to use ob to create a <div then remove it when the page has finished loading? ie loading cover. Quote Link to comment Share on other sites More sharing options...
corbin Posted October 19, 2009 Share Posted October 19, 2009 Hmmm, sounds like you should maybe look into AJAX instead. Quote Link to comment Share on other sites More sharing options...
Dorky Posted October 19, 2009 Author Share Posted October 19, 2009 Hmmm, sounds like you should maybe look into AJAX instead. yes i am aware that jscript can do this, in fact is just for this. just trying to learn the ins and outs of php while making fun projects. im 32 but i still like to play. Quote Link to comment Share on other sites More sharing options...
corbin Posted October 19, 2009 Share Posted October 19, 2009 The short answer is no. The medium answer is: Technically maybe yes with JS also. The long answer: Feasibly? No. PHP is not the only thing that controls buffering. Apache can buffer, and the web browser can buffer. Also, I would imagine most browsers don't render as HTML is received. Quote Link to comment Share on other sites More sharing options...
Dorky Posted October 19, 2009 Author Share Posted October 19, 2009 i did i fake loading bar just for fun using a while loop spitting out a 1px by 5px div per cycle using relative so i know you can add html to the browser and because of the css it doesnt matter what order its in, i just think the removing of an element would be the challenge and havent worked with any ob yet so not sure of the potential for that. im just trying to spark up a convo with anyone who might think this fun. the fake loading bar was great tho. php was in the index.php and after the cycles completed it spit a 0sec meta refresh with a get to keep it from infinite looping. PHP is not the only thing that controls buffering. Apache can buffer, and the web browser can buffer. Also, I would imagine most browsers don't render as HTML is received. 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.