zkoneffko Posted October 15, 2008 Share Posted October 15, 2008 Here is my situation. I have multiple php pages that I want to put a manual on the right side of. The manual will be the same on everypage. I have created the manual as an expandable menu in a separate file. I currently load the file on each page using the onLoad function. However, due to the size of the manual and the size that file is, it has long load times. Everytime you go to a separate php page it reloads the manaul include and takes long again. I'm simply looking for the best way to include this on everypage. Should I continue to use the onLoad with some added function I'm unaware of, or what is the best way to do this. I'm am open to all suggestions. Quote Link to comment https://forums.phpfreaks.com/topic/128602-suggestions-to-include-large-amount-of-text-on-page-in-expandable-manual/ Share on other sites More sharing options...
haku Posted October 16, 2008 Share Posted October 16, 2008 If you are using 'onload', it sounds like you are loading the manual using javascript, which is a big no-no, as many users have javascript turned off. Include it into each page with a php include function. Quote Link to comment https://forums.phpfreaks.com/topic/128602-suggestions-to-include-large-amount-of-text-on-page-in-expandable-manual/#findComment-666803 Share on other sites More sharing options...
sparq Posted October 16, 2008 Share Posted October 16, 2008 You could solve both problems by including all your pages in one php file with links to the others and the manual in another frame on the same page Quote Link to comment https://forums.phpfreaks.com/topic/128602-suggestions-to-include-large-amount-of-text-on-page-in-expandable-manual/#findComment-667099 Share on other sites More sharing options...
PFMaBiSmAd Posted October 16, 2008 Share Posted October 16, 2008 Since he did not explain what he is currently doing, it will be a little hard for anyone to provide good advice - He has a 700K word document that is providing a catalog/navigation on all his pages and it takes a long time for the browser to receive and render it (and perhaps for MSWord to open in the client as well.) Quote Link to comment https://forums.phpfreaks.com/topic/128602-suggestions-to-include-large-amount-of-text-on-page-in-expandable-manual/#findComment-667103 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.