zeek Posted January 18, 2008 Share Posted January 18, 2008 Hi everyone, I just have one question. I made a portfolio website and I use php to load my content, but is there a way to load just the content without reloading the entire page itself. I want to put a MP3 Player on the site, but when I click to go to another page, the music stops and everything reloads, is there way to do this without loading my banner and only the bottom half of the page, because the mp3 is designed into the banner. If so then please respond ASAP thank you. Quote Link to comment https://forums.phpfreaks.com/topic/86663-php-load-function/ Share on other sites More sharing options...
cooldude832 Posted January 18, 2008 Share Posted January 18, 2008 ajax but thats a lotta data to push, once headers are sent php dies (for the document it is operating in) so to get "new" php data you either have to 1) Update from some other point and use js (AJAX) to retrive said data 2) Reload the page not much else you can do because of the php:prehypertext processor. Quote Link to comment https://forums.phpfreaks.com/topic/86663-php-load-function/#findComment-442875 Share on other sites More sharing options...
p2grace Posted January 18, 2008 Share Posted January 18, 2008 AJAX is really the best way to do it. You might be able to get away with using iframes or something, but I wouldn't recommend it. Quote Link to comment https://forums.phpfreaks.com/topic/86663-php-load-function/#findComment-442877 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.