Why not just create a struct for the menu objects and then it would only have to load one time. Then on all your pages you could just reference the items in the struct to define your menu.
Doug ----- Original Message ----- From: "Shahzad Butt" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 6:40 AM Subject: Menu Problem > > Hi all > > My menu is created by calling lot of custom tags and stored procedures. So > its execution time is almost 1100 ms. Now if i make a custom tag of menu and > call this tag in each page then definitely execution time of each page would > be increase by this time. So all i want to do is store this menu template in > variable using CFSaveContent or CF_BodyContent in Home Page. Give this > variable a scope and call that variable on top of each page. If i give this > variable session scope it works fine and execution time is 10 ms. But we are > not using session variables. So i've to use client variable. If i convert > this variable to wddx packet and give this wddx packet client scope > (Client.MenuInWDDX) in home page. Now in each page i just deserialise this > wddx packet (Client.MenuInWDDX) and display output variable (MenuVar). It > should work. But problem is each page wont recoginse Client scoped variable. > So either this should be in app_local.cfm of root? But if so then problem is > still same cos i've to call custom tag of menu in app_local.cfm of root. So > by default execution time would be 1100ms. I am developing this application > using FB3. Below is code what I am doing or trying to do. > > Home.cfm > <CFSaveContent variable="MenuVar"> > <cfmodule template="../../Menu/index.cfm" Fuseaction="Menu"> (Forget what > is in this file, crazy stored procedures and custom tags) > </CFSaveContent> > <CFWDDX action="CFML2WDDX" input="#MenuVar#" output="Client.MenuInWDDX"> > > In each page > <CFWDDX action="WDDX2CFML" input="#Client.MenuInWDDX#" output="MenuVar"> > (error wont recognise Client.MenuInWDDX) > <cfoutput>#MenuVar#</cfoutput> > > Can some give me any suggetion what should I do. > > Thanks a lot > Regards > Shahzad Butt > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

