bnovak Posted August 31, 2010 Share Posted August 31, 2010 This should be an easy one but I'm looking for a bit of help. I'm using a php framework and using includes to bring different pieces of a website togethor onto the page. The top of the page uses a flash banner, then there are some simple text sections below. The banner is in it's own php file as well. Wondering if it's possible to have the banner NOT replay after each page load? I'm not sure if this is something I need to setup in the flash file, or if there is a way to do it in the php files? Basically, the banner is the same for all of the pages, and I want it (once loaded) to stay on the page while the details on the bottom change, WITHOUT going through the entire animation again. Make sense? here's the page as it stands now so you can get a better idea what I'm trying to do. http://www.getmoreimpact.com/index.php again not sure if this needs to be done in the flash side, or the php? Any ideas are better than what I've got! Thanks in advance Link to comment https://forums.phpfreaks.com/topic/212230-loading-only-sections-of-a-page-not-sure-how-to-explain/ Share on other sites More sharing options...
jayarsee Posted August 31, 2010 Share Posted August 31, 2010 You can either do this by setting ActionScript variables inside the Flash which allows it to track whether or not the opening animation has played so that when the page refreshes it does not replay, /or/ you can leave the Flash as it is and simply prevent navigation actions from reloading the page by loading all of the site's content and managing all of the navigation via ajax. If you were going with the latter, I would recommend you implement this with the jQuery library since it makes this sort of heavy ajax use considerably less cumbersome than it is with XMLHttpRequest directly. Or the least sexy solution: iframes, flash in one, content in the other. Link to comment https://forums.phpfreaks.com/topic/212230-loading-only-sections-of-a-page-not-sure-how-to-explain/#findComment-1105862 Share on other sites More sharing options...
bnovak Posted August 31, 2010 Author Share Posted August 31, 2010 hmm.... none of those sound very exciting. The actionscript sounds the least complicated though so looks like I'm off down that rabbit hole! (since I'm already using AS for the page loads etc.) Link to comment https://forums.phpfreaks.com/topic/212230-loading-only-sections-of-a-page-not-sure-how-to-explain/#findComment-1105870 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.