zkoneffko Posted October 16, 2008 Share Posted October 16, 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 Share on other sites More sharing options...
ratcateme Posted October 16, 2008 Share Posted October 16, 2008 if its an expandable menu can you just write the first layer in your code then include each new level when a user clicks on that level so it is in lots of different files no one big one. so the user only loads the parts they wish to view. Scott. Quote Link to comment Share on other sites More sharing options...
zkoneffko Posted October 16, 2008 Author Share Posted October 16, 2008 Thats a thought. Does anyone have any thoughts if I should use a database in some way? I'm trying to get many options and figure out which one is the best. Quote Link to comment Share on other sites More sharing options...
CroNiX Posted October 16, 2008 Share Posted October 16, 2008 Personally I would use a database and ajax. The user clicks on a menu item and it only retrieves the info for that page and inserts it in the current view without reloading the page. It would be very fast compared to what you are doing. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted October 16, 2008 Share Posted October 16, 2008 Ajax can cut down on load time significantly Quote Link to comment Share on other sites More sharing options...
zkoneffko Posted October 16, 2008 Author Share Posted October 16, 2008 Anyone else have any suggestions? Quote Link to comment Share on other sites More sharing options...
kishan Posted October 16, 2008 Share Posted October 16, 2008 are u doing any compleax queries or any big logic stuff there in your manual page may be it can help u like in ur entire app when the manual was initially loaded keep a session to have all the file contents and when ever if the session is there directly echo the sess var (it is suggested only when ur not changing the menu content) Quote Link to comment Share on other sites More sharing options...
discomatt Posted October 16, 2008 Share Posted October 16, 2008 Why not use HTML frames? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 16, 2008 Share Posted October 16, 2008 zkoneffko, if you post a link to the site or post an example of what you are doing (what the file is, what processing is being done on it, how it is being displayed), you will get more specific answers. Since you have not shown any real information, you are just getting generic do-this, do-that suggestions that might not have anything to do with what or how you are using the catalog file on your site. 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.